Use dedicated method to move rectangle

This commit is contained in:
Artur Wieczorek
2018-12-28 09:41:24 +01:00
parent 18e03af068
commit 76ff4ab2b6

View File

@@ -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();
}