]> git.saurik.com Git - wxWidgets.git/blobdiff - src/ribbon/art_msw.cpp
avoid setting negative window sizes
[wxWidgets.git] / src / ribbon / art_msw.cpp
index 32d0e2acdb050cf13dd4004b00a42c69810036ca..3b147d8fa9b11d57bdee539bedd6bf8b6f992dfd 100644 (file)
@@ -2446,6 +2446,8 @@ wxSize wxRibbonMSWArtProvider::GetPanelClientSize(
         else
             *client_offset = wxPoint(3, 2);
     }
+    if (size.x < 0) size.x = 0;
+    if (size.y < 0) size.y = 0;
 
     return size;
 }