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:
@@ -4418,8 +4418,8 @@ void wxGrid::Init()
|
|||||||
|
|
||||||
m_currentCellCoords = wxGridNoCellCoords;
|
m_currentCellCoords = wxGridNoCellCoords;
|
||||||
|
|
||||||
m_selectingTopLeft = wxGridNoCellCoords;
|
ClearSelection();
|
||||||
m_selectingBottomRight = wxGridNoCellCoords;
|
|
||||||
m_selectionBackground = wxSystemSettings::GetColour(wxSYS_COLOUR_HIGHLIGHT);
|
m_selectionBackground = wxSystemSettings::GetColour(wxSYS_COLOUR_HIGHLIGHT);
|
||||||
m_selectionForeground = wxSystemSettings::GetColour(wxSYS_COLOUR_HIGHLIGHTTEXT);
|
m_selectionForeground = wxSystemSettings::GetColour(wxSYS_COLOUR_HIGHLIGHTTEXT);
|
||||||
|
|
||||||
@@ -10793,8 +10793,9 @@ wxArrayInt wxGrid::GetSelectedCols() const
|
|||||||
|
|
||||||
void wxGrid::ClearSelection()
|
void wxGrid::ClearSelection()
|
||||||
{
|
{
|
||||||
m_selectingTopLeft = wxGridNoCellCoords;
|
m_selectingTopLeft =
|
||||||
m_selectingBottomRight = wxGridNoCellCoords;
|
m_selectingBottomRight =
|
||||||
|
m_selectingKeyboard = wxGridNoCellCoords;
|
||||||
if ( m_selection )
|
if ( m_selection )
|
||||||
m_selection->ClearSelection();
|
m_selection->ClearSelection();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user