]> git.saurik.com Git - wxWidgets.git/commitdiff
moved setting of internal vars in order to avoid problems in recursing (MoveWindow...
authorStefan Csomor <csomor@advancedconcepts.ch>
Thu, 11 Sep 2003 20:33:02 +0000 (20:33 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Thu, 11 Sep 2003 20:33:02 +0000 (20:33 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23532 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/toplevel.cpp
src/mac/toplevel.cpp

index a78d68ecf04d1be0f9aa35656a2f276642d063db..67b1307bd7576753a8cfe89a8b00fa1996db5e5a 100644 (file)
@@ -1070,12 +1070,13 @@ void wxTopLevelWindowMac::DoMoveWindow(int x, int y, int width, int height)
     {
         m_x = actualX ;
         m_y = actualY ;
-        m_width = actualWidth ;
-        m_height = actualHeight ;
 
         if ( doMove )
             ::MoveWindow((WindowRef)m_macWindow, m_x, m_y  , false); // don't make frontmost
 
+        m_width = actualWidth ;
+        m_height = actualHeight ;
+
         if ( doResize )
             ::SizeWindow((WindowRef)m_macWindow, m_width, m_height  , true);
 
index a78d68ecf04d1be0f9aa35656a2f276642d063db..67b1307bd7576753a8cfe89a8b00fa1996db5e5a 100644 (file)
@@ -1070,12 +1070,13 @@ void wxTopLevelWindowMac::DoMoveWindow(int x, int y, int width, int height)
     {
         m_x = actualX ;
         m_y = actualY ;
-        m_width = actualWidth ;
-        m_height = actualHeight ;
 
         if ( doMove )
             ::MoveWindow((WindowRef)m_macWindow, m_x, m_y  , false); // don't make frontmost
 
+        m_width = actualWidth ;
+        m_height = actualHeight ;
+
         if ( doResize )
             ::SizeWindow((WindowRef)m_macWindow, m_width, m_height  , true);