]> git.saurik.com Git - wxWidgets.git/commitdiff
docking crash fix patch applied
authorBenjamin Williams <bwilliams@kirix.com>
Thu, 16 Nov 2006 06:13:21 +0000 (06:13 +0000)
committerBenjamin Williams <bwilliams@kirix.com>
Thu, 16 Nov 2006 06:13:21 +0000 (06:13 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43436 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/aui/framemanager.cpp

index 5339faebbbf22be91aca243165942630d1ce9fb6..1c4e1ac2d1eb382a3ff74b3f636aeca98d72910a 100644 (file)
@@ -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);