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
This commit is contained in:
Julian Smart 2002-09-12 11:11:34 +00:00
parent 0fd28ea3df
commit d9d3622e59

View 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,