avoid setting negative window size
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63854 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -373,6 +373,8 @@ void wxRibbonPage::SetSizeWithScrollButtonAdjustment(int x, int y, int width, in
|
||||
}
|
||||
}
|
||||
}
|
||||
if (width < 0) width = 0;
|
||||
if (height < 0) height = 0;
|
||||
SetSize(x, y, width, height);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user