Use dedicated IncBy method to increase wxSize value in propgrid sample.
Use this method instead of modifying directly wxSize data members.
This commit is contained in:
@@ -2472,8 +2472,7 @@ void FormMain::OnFitColumnsClick( wxCommandEvent& WXUNUSED(event) )
|
||||
int dx = oldFullSize.x - oldGridSize.x;
|
||||
int dy = oldFullSize.y - oldGridSize.y;
|
||||
|
||||
newSz.x += dx;
|
||||
newSz.y += dy;
|
||||
newSz.IncBy(dx, dy);
|
||||
|
||||
SetSize(newSz);
|
||||
}
|
||||
|
Reference in New Issue
Block a user