]> git.saurik.com Git - wxWidgets.git/blobdiff - src/ribbon/page.cpp
cleanup
[wxWidgets.git] / 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);
 }