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:
@@ -1459,6 +1459,11 @@ void wxWindow::DoMoveWindow(int x, int y, int width, int height)
|
|||||||
if (m_drawingArea)
|
if (m_drawingArea)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if (width == 0)
|
||||||
|
width = 1;
|
||||||
|
if (height == 0)
|
||||||
|
height = 1;
|
||||||
|
|
||||||
XtVaSetValues((Widget)GetTopWidget(),
|
XtVaSetValues((Widget)GetTopWidget(),
|
||||||
XmNx, x,
|
XmNx, x,
|
||||||
XmNy, y,
|
XmNy, y,
|
||||||
|
Reference in New Issue
Block a user