From d9d3622e59f390e1f611816574f25da5e61dc12c Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Thu, 12 Sep 2002 11:11:34 +0000 Subject: [PATCH] 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 --- src/motif/window.cpp | 5 +++++ 1 file changed, 5 insertions(+) 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,