]> git.saurik.com Git - wxWidgets.git/blobdiff - src/aui/floatpane.cpp
Fix for broken wxGTK1 compilation
[wxWidgets.git] / src / aui / floatpane.cpp
index 99e80894e387af106f6637a40d06290c47c98010..9fafc9976d1411ae51ccafed4e62e04b17895a41 100644 (file)
@@ -214,6 +214,15 @@ void wxAuiFloatingFrame::OnMoveEvent(wxMoveEvent& event)
         m_last3_rect = m_last2_rect;
         m_last2_rect = m_last_rect;
         m_last_rect = win_rect;
+
+        // However still update the internally stored position to avoid
+        // snapping back to the old one later.
+        if (m_owner_mgr)
+        {
+            m_owner_mgr->GetPane(m_pane_window).
+                floating_pos = win_rect.GetPosition();
+        }
+
         return;
     }