Added missing screen update on deselection in wxGrid (ticket #4212, part1).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54238 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -11019,9 +11019,13 @@ wxArrayInt wxGrid::GetSelectedCols() const
|
|||||||
|
|
||||||
void wxGrid::ClearSelection()
|
void wxGrid::ClearSelection()
|
||||||
{
|
{
|
||||||
|
wxRect r1 = BlockToDeviceRect( m_selectingTopLeft, m_selectingBottomRight);
|
||||||
|
wxRect r2 = BlockToDeviceRect( m_currentCellCoords, m_selectingKeyboard );
|
||||||
m_selectingTopLeft =
|
m_selectingTopLeft =
|
||||||
m_selectingBottomRight =
|
m_selectingBottomRight =
|
||||||
m_selectingKeyboard = wxGridNoCellCoords;
|
m_selectingKeyboard = wxGridNoCellCoords;
|
||||||
|
Refresh( false, &r1 );
|
||||||
|
Refresh( false, &r2 );
|
||||||
if ( m_selection )
|
if ( m_selection )
|
||||||
m_selection->ClearSelection();
|
m_selection->ClearSelection();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user