From 64561c3308abce76e75d8078fce97aad6c75899d Mon Sep 17 00:00:00 2001 From: Stefan Neis Date: Fri, 5 May 2000 09:43:29 +0000 Subject: [PATCH] Fixed cell highlighting for disabled grid lines. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_2_BRANCH@7350 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/grid.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/generic/grid.cpp b/src/generic/grid.cpp index 3a11ff3070..1e729425db 100644 --- a/src/generic/grid.cpp +++ b/src/generic/grid.cpp @@ -5310,6 +5310,14 @@ void wxGrid::SetCurrentCell( const wxGridCellCoords& coords ) // Clear the old current cell highlight wxRect r = BlockToDeviceRect(m_currentCellCoords, m_currentCellCoords); + if ( !m_gridLinesEnabled ) + { + r.x--; + r.y--; + r.width++; + r.height++; + } + // Otherwise refresh redraws the highlight! m_currentCellCoords = coords;