From: Vadim Zeitlin Date: Mon, 15 Sep 2008 08:45:29 +0000 (+0000) Subject: remove automatic selection of the current row/column in row/column selection mode... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/d8210cd1b35b6c059f5a997705b899968ac268a9?ds=inline remove automatic selection of the current row/column in row/column selection mode when the current cell is changed using the mouse, this is inconsitent with both cell selection mode and the keyboard behaviour in row/column selection mode git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55639 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/generic/grid.cpp b/src/generic/grid.cpp index c86a760755..de06f058ed 100644 --- a/src/generic/grid.cpp +++ b/src/generic/grid.cpp @@ -6143,16 +6143,9 @@ void wxGrid::ProcessGridCellMouseEvent( wxMouseEvent& event ) } else { - m_waitForSlowClick = m_currentCellCoords == coords && coords != wxGridNoCellCoords; + m_waitForSlowClick = m_currentCellCoords == coords && + coords != wxGridNoCellCoords; SetCurrentCell( coords ); - if ( m_selection ) - { - if ( m_selection->GetSelectionMode() != - wxGrid::wxGridSelectCells ) - { - HighlightBlock( coords, coords ); - } - } } } }