From: Vadim Zeitlin Date: Sun, 2 Jul 2006 00:29:58 +0000 (+0000) Subject: reset m_selectingKeyboard in ClearSelection() too X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/b524b5c6f86062573c9a06a98290daaeb8d6ba01?ds=inline reset m_selectingKeyboard in ClearSelection() too git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39927 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/generic/grid.cpp b/src/generic/grid.cpp index 6794b49c3e..4d76b9be45 100644 --- a/src/generic/grid.cpp +++ b/src/generic/grid.cpp @@ -4418,8 +4418,8 @@ void wxGrid::Init() m_currentCellCoords = wxGridNoCellCoords; - m_selectingTopLeft = wxGridNoCellCoords; - m_selectingBottomRight = wxGridNoCellCoords; + ClearSelection(); + m_selectionBackground = wxSystemSettings::GetColour(wxSYS_COLOUR_HIGHLIGHT); m_selectionForeground = wxSystemSettings::GetColour(wxSYS_COLOUR_HIGHLIGHTTEXT); @@ -10793,8 +10793,9 @@ wxArrayInt wxGrid::GetSelectedCols() const void wxGrid::ClearSelection() { - m_selectingTopLeft = wxGridNoCellCoords; - m_selectingBottomRight = wxGridNoCellCoords; + m_selectingTopLeft = + m_selectingBottomRight = + m_selectingKeyboard = wxGridNoCellCoords; if ( m_selection ) m_selection->ClearSelection(); }