]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/gridsel.cpp
reversed some parts of wxGetKeyState for linkage reasons...
[wxWidgets.git] / src / generic / gridsel.cpp
index a86edfc4adf569bce4ff731cdc01150d5865fe73..17e8f0ecbc5ce261a84bee82d64ec86b4bc03ed6 100644 (file)
@@ -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 );