]> git.saurik.com Git - wxWidgets.git/commitdiff
fix for crash when undocking AUI toolbars (same as r59107 in 2.8 branch)
authorBenjamin Williams <bwilliams@kirix.com>
Sat, 2 May 2009 15:09:24 +0000 (15:09 +0000)
committerBenjamin Williams <bwilliams@kirix.com>
Sat, 2 May 2009 15:09:24 +0000 (15:09 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60475 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/aui/framemanager.cpp

index 76a3081d68ef17379e8aa29a88469f0c7b38b2ca..62b3281b91394671ad6e7a74ea9c155adb396c1d 100644 (file)
@@ -3604,6 +3604,9 @@ void wxAuiManager::OnFloatingPaneMoving(wxWindow* wnd, wxDirection dir)
     wxAuiPaneInfo& pane = GetPane(wnd);
     wxASSERT_MSG(pane.IsOk(), wxT("Pane window not found"));
 
+    if(!pane.frame)
+        return;
+
     wxPoint pt = ::wxGetMousePosition();
 
 #if 0
@@ -3704,6 +3707,9 @@ void wxAuiManager::OnFloatingPaneMoved(wxWindow* wnd, wxDirection dir)
     wxAuiPaneInfo& pane = GetPane(wnd);
     wxASSERT_MSG(pane.IsOk(), wxT("Pane window not found"));
 
+    if(!pane.frame)
+        return;
+
     wxPoint pt = ::wxGetMousePosition();
 
 #if 0