Use dedicated method to move rectangle
This commit is contained in:
@@ -2564,8 +2564,7 @@ void wxPropertyGrid::DrawItems( const wxPGProperty* p1, const wxPGProperty* p2 )
|
|||||||
GetViewStart(&vx, &vy);
|
GetViewStart(&vx, &vy);
|
||||||
vx *= wxPG_PIXELS_PER_UNIT;
|
vx *= wxPG_PIXELS_PER_UNIT;
|
||||||
vy *= wxPG_PIXELS_PER_UNIT;
|
vy *= wxPG_PIXELS_PER_UNIT;
|
||||||
r.x -= vx;
|
r.Offset(-vx, -vy);
|
||||||
r.y -= vy;
|
|
||||||
RefreshRect(r);
|
RefreshRect(r);
|
||||||
Update();
|
Update();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user