]> git.saurik.com Git - wxWidgets.git/commitdiff
Fix crash when dragging toolbars in wxAuiManager::OnFloatingPaneMoveStart(). (fixes...
authorBryan Petty <bryan@ibaku.net>
Mon, 16 Nov 2009 21:55:57 +0000 (21:55 +0000)
committerBryan Petty <bryan@ibaku.net>
Mon, 16 Nov 2009 21:55:57 +0000 (21:55 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62669 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/aui/framemanager.cpp

index 940ecfdad41ec2dab8806687ab1783e586c493ee..0437d90c79ec84652201770be8cd8d437022427b 100644 (file)
@@ -3589,6 +3589,9 @@ void wxAuiManager::OnFloatingPaneMoveStart(wxWindow* wnd)
     wxAuiPaneInfo& pane = GetPane(wnd);
     wxASSERT_MSG(pane.IsOk(), wxT("Pane window not found"));
 
+    if(!pane.frame)
+        return;
+
     if (m_flags & wxAUI_MGR_TRANSPARENT_DRAG)
         pane.frame->SetTransparent(150);
 }