X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8536ce5b3f10dfe6dce9e4db23af50c8338f0300..16eac072eb0d3af2ce40cc507946ae83fd6f16c9:/src/ribbon/art_msw.cpp diff --git a/src/ribbon/art_msw.cpp b/src/ribbon/art_msw.cpp index 32d0e2acdb..3b147d8fa9 100644 --- a/src/ribbon/art_msw.cpp +++ b/src/ribbon/art_msw.cpp @@ -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; }