From 906ecfa15de72323a45baca2017b1ba8aaf2b070 Mon Sep 17 00:00:00 2001 From: Stefan Neis Date: Sun, 15 Jun 2008 14:10:41 +0000 Subject: [PATCH] Added missing screen update on deselection in wxGrid (ticket #4212, part1). git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@54237 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/grid.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/generic/grid.cpp b/src/generic/grid.cpp index 36c78ab5de..821fe25221 100644 --- a/src/generic/grid.cpp +++ b/src/generic/grid.cpp @@ -11102,9 +11102,13 @@ wxArrayInt wxGrid::GetSelectedCols() const void wxGrid::ClearSelection() { + wxRect r1 = BlockToDeviceRect( m_selectingTopLeft, m_selectingBottomRight); + wxRect r2 = BlockToDeviceRect( m_currentCellCoords, m_selectingKeyboard ); m_selectingTopLeft = m_selectingBottomRight = m_selectingKeyboard = wxGridNoCellCoords; + Refresh( false, &r1 ); + Refresh( false, &r2 ); if ( m_selection ) m_selection->ClearSelection(); }