From 9ad19622fd31bbc8af4521de5a44c35dc3959955 Mon Sep 17 00:00:00 2001 From: Artur Wieczorek Date: Thu, 27 Dec 2018 10:50:58 +0100 Subject: [PATCH] Fix drawing horizontal lines between the rows of the grid 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 55a33034f9..5e320bafcb 100644 --- a/src/propgrid/propgrid.cpp +++ b/src/propgrid/propgrid.cpp @@ -2248,7 +2248,7 @@ int wxPropertyGrid::DoDrawItems( wxDC& dc, nextP && nextP->IsCategory() ) dc.SetPen(m_colCapBack); - dc.DrawLine( greyDepthX, y2-1, gridWidth-xRelMod, y2-1 ); + dc.DrawLine(greyDepthX, y2 - 1, cellX, y2 - 1); // // Need to override row colours?