Fix indentation in wxGrid mouse processing code
Indent "break" statements correctly and remove unnecessary braces. No real changes. This commit is best viewed ignoring whitespace-only changes.
This commit is contained in:
parent
7828975bb3
commit
e70be8f82b
@ -3828,13 +3828,10 @@ void wxGrid::ProcessRowLabelMouseEvent( wxMouseEvent& event, wxGridRowLabelWindo
|
|||||||
switch ( m_cursorMode )
|
switch ( m_cursorMode )
|
||||||
{
|
{
|
||||||
case WXGRID_CURSOR_RESIZE_ROW:
|
case WXGRID_CURSOR_RESIZE_ROW:
|
||||||
{
|
|
||||||
DoGridDragResize(event.GetPosition(), wxGridRowOperations(), gridWindow);
|
DoGridDragResize(event.GetPosition(), wxGridRowOperations(), gridWindow);
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case WXGRID_CURSOR_SELECT_ROW:
|
case WXGRID_CURSOR_SELECT_ROW:
|
||||||
{
|
|
||||||
if ( !m_selection || m_numRows == 0 || m_numCols == 0 )
|
if ( !m_selection || m_numRows == 0 || m_numCols == 0 )
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@ -3851,7 +3848,6 @@ void wxGrid::ProcessRowLabelMouseEvent( wxMouseEvent& event, wxGridRowLabelWindo
|
|||||||
event,
|
event,
|
||||||
wxEVT_GRID_RANGE_SELECTING);
|
wxEVT_GRID_RANGE_SELECTING);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
// default label to suppress warnings about "enumeration value
|
// default label to suppress warnings about "enumeration value
|
||||||
@ -4175,7 +4171,6 @@ void wxGrid::ProcessColLabelMouseEvent( wxMouseEvent& event, wxGridColLabelWindo
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case WXGRID_CURSOR_SELECT_COL:
|
case WXGRID_CURSOR_SELECT_COL:
|
||||||
{
|
|
||||||
if ( col != -1 )
|
if ( col != -1 )
|
||||||
{
|
{
|
||||||
if ( !m_selection || m_numRows == 0 || m_numCols == 0 )
|
if ( !m_selection || m_numRows == 0 || m_numCols == 0 )
|
||||||
@ -4193,7 +4188,6 @@ void wxGrid::ProcessColLabelMouseEvent( wxMouseEvent& event, wxGridColLabelWindo
|
|||||||
event,
|
event,
|
||||||
wxEVT_GRID_RANGE_SELECTING);
|
wxEVT_GRID_RANGE_SELECTING);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case WXGRID_CURSOR_MOVE_COL:
|
case WXGRID_CURSOR_MOVE_COL:
|
||||||
|
Loading…
Reference in New Issue
Block a user