]> git.saurik.com Git - wxWidgets.git/commitdiff
reset deferred position/size if the window was moved immediately (#10073)
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 15 Oct 2008 21:03:40 +0000 (21:03 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 15 Oct 2008 21:03:40 +0000 (21:03 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56348 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/window.cpp

index 5ddf3d7a8cc966f7d19b942d1868ff3d3d31d08b..f2b47d0fa4e255be7f579caef7ef8685caab9826 100644 (file)
@@ -1987,6 +1987,11 @@ void wxWindowMSW::DoMoveWindow(int x, int y, int width, int height)
 #if USE_DEFERRED_SIZING
         m_pendingPosition = wxPoint(x, y);
         m_pendingSize = wxSize(width, height);
+    }
+    else // window was moved immediately, without deferring it
+    {
+        m_pendingPosition = wxDefaultPosition;
+        m_pendingSize = wxDefaultSize;
 #endif // USE_DEFERRED_SIZING
     }
 }