From de6469610ab86307f0d9804c83dc233f096434f1 Mon Sep 17 00:00:00 2001 From: Artur Wieczorek Date: Thu, 27 Dec 2018 10:57:47 +0100 Subject: [PATCH] Fix determining width of the entire row See #18313. --- src/propgrid/propgrid.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/propgrid/propgrid.cpp b/src/propgrid/propgrid.cpp index 5e320bafcb..3709ef2bc8 100644 --- a/src/propgrid/propgrid.cpp +++ b/src/propgrid/propgrid.cpp @@ -2330,8 +2330,7 @@ int wxPropertyGrid::DoDrawItems( wxDC& dc, lh ); // Default cell rect fill the entire row - wxRect cellRect(greyDepthX, y, - gridWidth - greyDepth + 2, rowHeight-1 ); + wxRect cellRect(greyDepthX, y, cellX - greyDepthX, rowHeight-1); bool isCategory = p->IsCategory();