]> git.saurik.com Git - wxWidgets.git/commitdiff
If a window has zero dimension, make it at least 1 pixel big
authorJulian Smart <julian@anthemion.co.uk>
Thu, 12 Sep 2002 11:11:34 +0000 (11:11 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Thu, 12 Sep 2002 11:11:34 +0000 (11:11 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@17148 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/motif/window.cpp

index 85a9fd34fe47d0724ee1549ef6f6044d77f8804b..0314491eb702195e180e75aa03ea5c20fa854554 100644 (file)
@@ -1459,6 +1459,11 @@ void wxWindow::DoMoveWindow(int x, int y, int width, int height)
     if (m_drawingArea)
         return;
 
+    if (width == 0)
+        width = 1;
+    if (height == 0)
+        height = 1;
+
     XtVaSetValues((Widget)GetTopWidget(),
                   XmNx, x,
                   XmNy, y,