From 48c71a5f04e1cd808092b5127f05a2139fa1a691 Mon Sep 17 00:00:00 2001 From: Artur Wieczorek Date: Thu, 27 Dec 2018 10:09:59 +0100 Subject: [PATCH] Fix calculating width of the first cell See #18313. --- src/propgrid/propgrid.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/propgrid/propgrid.cpp b/src/propgrid/propgrid.cpp index c99c8e63c2..67ac880631 100644 --- a/src/propgrid/propgrid.cpp +++ b/src/propgrid/propgrid.cpp @@ -2368,7 +2368,7 @@ int wxPropertyGrid::DoDrawItems( wxDC& dc, cellRect.x += 1; } - int firstCellWidth = colWidths[0] - (greyDepthX - m_marginWidth); + int firstCellWidth = colWidths[0] - (greyDepth - m_marginWidth); int firstCellX = cellRect.x; // Calculate cellRect.x for the last cell