From cffda6922a7a7f205389e8002d0b7558ec2d36fb Mon Sep 17 00:00:00 2001 From: Paul Cornett Date: Mon, 5 Apr 2010 01:07:24 +0000 Subject: [PATCH] avoid setting negative window size git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63854 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/ribbon/page.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ribbon/page.cpp b/src/ribbon/page.cpp index dd6e2a11ef..fed553be37 100644 --- a/src/ribbon/page.cpp +++ b/src/ribbon/page.cpp @@ -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); } -- 2.45.2