X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f1e269209afbcbec4e46ab5df4ba43d902a6bf2f..c1ef87c33d21f834a55f106324d5a6de4b9600cb:/src/generic/gridsel.cpp diff --git a/src/generic/gridsel.cpp b/src/generic/gridsel.cpp index a86edfc4ad..17e8f0ecbc 100644 --- a/src/generic/gridsel.cpp +++ b/src/generic/gridsel.cpp @@ -589,7 +589,6 @@ void wxGridSelection::ToggleCellSelection( int row, int col, r = m_grid->BlockToDeviceRect( m_cellSelection[n], m_cellSelection[n] ); m_cellSelection.RemoveAt(n); - n--; count--; if ( !m_grid->GetBatchCount() ) ((wxWindow *)m_grid->m_gridWin)->Refresh( FALSE, &r );