reset m_selectingKeyboard in ClearSelection() too

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39927 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2006-07-02 00:29:58 +00:00
parent c849ecefc2
commit b524b5c6f8

View File

@@ -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();
}