SetSize with all -1 was returning too soon in some cases

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26456 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2004-03-29 12:46:41 +00:00
parent 957165f103
commit 769ac86930

View File

@@ -1417,7 +1417,7 @@ void wxWindowMac::DoSetSize(int x, int y, int width, int height, int sizeFlags)
// ... and don't do anything (avoiding flicker) if it's already ok
if ( x == currentX && y == currentY &&
width == currentW && height == currentH )
width == currentW && height == currentH && ( height != -1 && width != -1 ) )
{
// TODO REMOVE
MacRepositionScrollBars() ; // we might have a real position shift