From: Stefan Csomor Date: Mon, 29 Mar 2004 12:46:41 +0000 (+0000) Subject: SetSize with all -1 was returning too soon in some cases X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/769ac86930d5223dfbe1b429dc929cadb2f48552?ds=inline 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 --- diff --git a/src/mac/carbon/window.cpp b/src/mac/carbon/window.cpp index 28e556b17d..f5bfbfaab2 100644 --- a/src/mac/carbon/window.cpp +++ b/src/mac/carbon/window.cpp @@ -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