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:
parent
0fd28ea3df
commit
d9d3622e59
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user