Blind fix for crash when undocking AUI toolbars (#10371 and #10516).

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@59107 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Bryan Petty
2009-02-23 18:28:05 +00:00
parent 3860d4fa2b
commit ff51d5a8cd

View File

@@ -3455,6 +3455,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
@@ -3558,6 +3561,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
@@ -3620,7 +3626,7 @@ void wxAuiManager::OnFloatingPaneMoved(wxWindow* wnd, wxDirection dir)
if (m_flags & wxAUI_MGR_TRANSPARENT_DRAG)
pane.frame->SetTransparent(255);
}
else if (m_has_maximized)
else if (m_has_maximized)
{
RestoreMaximizedPane();
}