]> git.saurik.com Git - wxWidgets.git/commitdiff
avoid setting negative window size
authorPaul Cornett <paulcor@bullseye.com>
Mon, 5 Apr 2010 01:07:24 +0000 (01:07 +0000)
committerPaul Cornett <paulcor@bullseye.com>
Mon, 5 Apr 2010 01:07:24 +0000 (01:07 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63854 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/ribbon/page.cpp

index dd6e2a11ef68aa9a79cc28408e370e7a9bb05f21..fed553be373e03b6639ecc8b085d558c1dcbc5e5 100644 (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);
 }