From 76ff4ab2b6e251f4fc9a0b0d186c66f7ddfc08d0 Mon Sep 17 00:00:00 2001 From: Artur Wieczorek Date: Fri, 28 Dec 2018 09:41:24 +0100 Subject: [PATCH] Use dedicated method to move rectangle --- 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 5536e43416..d14243b09f 100644 --- a/src/propgrid/propgrid.cpp +++ b/src/propgrid/propgrid.cpp @@ -2564,8 +2564,7 @@ void wxPropertyGrid::DrawItems( const wxPGProperty* p1, const wxPGProperty* p2 ) GetViewStart(&vx, &vy); vx *= wxPG_PIXELS_PER_UNIT; vy *= wxPG_PIXELS_PER_UNIT; - r.x -= vx; - r.y -= vy; + r.Offset(-vx, -vy); RefreshRect(r); Update(); }