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,