X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d95b0c2ba0aca17fe3d0088276dd2db8a4571eb8..77611ad4da9df336a0805508276a81b8f4437107:/src/generic/gridsel.cpp diff --git a/src/generic/gridsel.cpp b/src/generic/gridsel.cpp index 4cb1c27629..d3d2222a0d 100644 --- a/src/generic/gridsel.cpp +++ b/src/generic/gridsel.cpp @@ -184,7 +184,7 @@ void wxGridSelection::SetSelectionMode(wxGrid::wxGridSelectionModes selmode) } } -void wxGridSelection::SelectRow( int row, bool addToSelected, +void wxGridSelection::SelectRow( int row, bool ControlDown, bool ShiftDown, bool AltDown, bool MetaDown ) { @@ -277,7 +277,7 @@ void wxGridSelection::SelectRow( int row, bool addToSelected, m_grid->GetEventHandler()->ProcessEvent(gridEvt); } -void wxGridSelection::SelectCol( int col, bool addToSelected, +void wxGridSelection::SelectCol( int col, bool ControlDown, bool ShiftDown, bool AltDown, bool MetaDown ) { @@ -586,7 +586,6 @@ void wxGridSelection::ToggleCellSelection( int row, int col, n--; count--; if ( !m_grid->GetBatchCount() ) ((wxWindow *)m_grid->m_gridWin)->Refresh( FALSE, &r ); - return; // Send event wxGridEvent gridEvt( m_grid->GetId(), @@ -596,6 +595,7 @@ void wxGridSelection::ToggleCellSelection( int row, int col, ControlDown, ShiftDown, AltDown, MetaDown ); m_grid->GetEventHandler()->ProcessEvent(gridEvt); + return; } } }