avoid negative widths
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32364 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1769,8 +1769,8 @@ void wxWindowMac::DoMoveWindow(int x, int y, int width, int height)
|
|||||||
former_y += pt.y ;
|
former_y += pt.y ;
|
||||||
}
|
}
|
||||||
|
|
||||||
int actualWidth = width;
|
int actualWidth = wxMax( width , 0 ) ;
|
||||||
int actualHeight = height;
|
int actualHeight = wxMax( height , 0 ) ;
|
||||||
int actualX = x;
|
int actualX = x;
|
||||||
int actualY = y;
|
int actualY = y;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user