From ddc0b275b330b85d2979591e9f58c44092e4925c Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Thu, 4 May 2000 19:22:55 +0000 Subject: [PATCH] fix for when gridlines are disabled. something still needs to be done to crrectly redraw after the cell highlight moves. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_2_BRANCH@7348 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/grid.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/generic/grid.cpp b/src/generic/grid.cpp index 1d232dcb91..3a11ff3070 100644 --- a/src/generic/grid.cpp +++ b/src/generic/grid.cpp @@ -5452,6 +5452,12 @@ void wxGrid::DrawCell( wxDC& dc, const wxGridCellCoords& coords ) rect.width = GetColWidth(col) - 1; rect.height = GetRowHeight(row) - 1; + // if grid lines are disabled, then the area of the cell is a bit larger + if (! m_gridLinesEnabled) { + rect.width += 1; + rect.height += 1; + } + // if the editor is shown, we should use it and not the renderer // Note: However, only if it is really _shown_, i.e. not hidden! if ( isCurrent && IsCellEditControlShown() )