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:
Paul Cornett
2010-04-05 01:07:24 +00:00
parent 9914bfbb77
commit cffda6922a

View File

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