From: Robin Dunn Date: Tue, 15 Feb 2000 18:33:16 +0000 (+0000) Subject: fix for goofed up grid borders when scrolling/refreshing X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/f87ac92e025f7c5cc39e880ead8c5f6247b023aa fix for goofed up grid borders when scrolling/refreshing git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6049 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/generic/grid.cpp b/src/generic/grid.cpp index 1c7a6320f0..fd9629d865 100644 --- a/src/generic/grid.cpp +++ b/src/generic/grid.cpp @@ -3673,8 +3673,8 @@ void wxGrid::DrawCell( wxDC& dc, const wxGridCellCoords& coords ) wxRect rect; rect.x = m_colRights[col] - m_colWidths[col]; rect.y = m_rowBottoms[row] - m_rowHeights[row]; - rect.width = m_colWidths[col]; - rect.height = m_rowHeights[row]; + rect.width = m_colWidths[col]-1; + rect.height = m_rowHeights[row]-1; wxGridCellAttr* attr = GetCellAttr(row, col); attr->GetRenderer()->Draw(*this, *attr, dc, rect, row, col, IsInSelection(coords));