]> git.saurik.com Git - wxWidgets.git/commitdiff
SetSize with all -1 was returning too soon in some cases
authorStefan Csomor <csomor@advancedconcepts.ch>
Mon, 29 Mar 2004 12:46:41 +0000 (12:46 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Mon, 29 Mar 2004 12:46:41 +0000 (12:46 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26456 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/window.cpp

index 28e556b17d8001194ad70e697fede9f6f746681b..f5bfbfaab2a9bf82cbe4cdefcabff0d4f08430fe 100644 (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 &&
 
     // ... 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
     {
         // TODO REMOVE
         MacRepositionScrollBars() ; // we might have a real position shift