From: Julian Smart Date: Thu, 12 Sep 2002 11:11:34 +0000 (+0000) Subject: If a window has zero dimension, make it at least 1 pixel big X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/d9d3622e59f390e1f611816574f25da5e61dc12c?hp=0fd28ea3dffb30ab1631784775f84ef3825c849b If a window has zero dimension, make it at least 1 pixel big git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@17148 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/motif/window.cpp b/src/motif/window.cpp index 85a9fd34fe..0314491eb7 100644 --- a/src/motif/window.cpp +++ b/src/motif/window.cpp @@ -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,