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:
Vadim Zeitlin 2021-07-03 15:52:04 +01:00
parent 7828975bb3
commit e70be8f82b

View File

@ -3828,13 +3828,10 @@ void wxGrid::ProcessRowLabelMouseEvent( wxMouseEvent& event, wxGridRowLabelWindo
switch ( m_cursorMode )
{
case WXGRID_CURSOR_RESIZE_ROW:
{
DoGridDragResize(event.GetPosition(), wxGridRowOperations(), gridWindow);
}
break;
case WXGRID_CURSOR_SELECT_ROW:
{
if ( !m_selection || m_numRows == 0 || m_numCols == 0 )
break;
@ -3851,7 +3848,6 @@ void wxGrid::ProcessRowLabelMouseEvent( wxMouseEvent& event, wxGridRowLabelWindo
event,
wxEVT_GRID_RANGE_SELECTING);
}
}
break;
// default label to suppress warnings about "enumeration value
@ -4175,7 +4171,6 @@ void wxGrid::ProcessColLabelMouseEvent( wxMouseEvent& event, wxGridColLabelWindo
break;
case WXGRID_CURSOR_SELECT_COL:
{
if ( col != -1 )
{
if ( !m_selection || m_numRows == 0 || m_numCols == 0 )
@ -4193,7 +4188,6 @@ void wxGrid::ProcessColLabelMouseEvent( wxMouseEvent& event, wxGridColLabelWindo
event,
wxEVT_GRID_RANGE_SELECTING);
}
}
break;
case WXGRID_CURSOR_MOVE_COL: