From: Benjamin Williams Date: Thu, 16 Nov 2006 06:13:21 +0000 (+0000) Subject: docking crash fix patch applied X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/852a7df6d5ee61b714b799e01e1c9066a3458ecf docking crash fix patch applied git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43436 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/aui/framemanager.cpp b/src/aui/framemanager.cpp index 5339faebbb..1c4e1ac2d1 100644 --- a/src/aui/framemanager.cpp +++ b/src/aui/framemanager.cpp @@ -2177,8 +2177,6 @@ void wxAuiManager::Update() wxSizer* sizer; int i, pane_count = m_panes.GetCount(); - // delete old sizer first - m_frame->SetSizer(NULL); // destroy floating panes which have been // redocked or are becoming non-floating @@ -2227,6 +2225,9 @@ void wxAuiManager::Update() } + // delete old sizer first + m_frame->SetSizer(NULL); + // create a layout for all of the panes sizer = LayoutAll(m_panes, m_docks, m_uiparts, false);