]> git.saurik.com Git - wxWidgets.git/commitdiff
aui dock renumbering fix
authorBenjamin Williams <bwilliams@kirix.com>
Tue, 6 Nov 2007 14:03:13 +0000 (14:03 +0000)
committerBenjamin Williams <bwilliams@kirix.com>
Tue, 6 Nov 2007 14:03:13 +0000 (14:03 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49683 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/aui/framemanager.cpp

index 7c552d924392fe666b2c29010ce9a035007364e1..9585b5b24260ccfc43736fa503c954a2b5608809 100644 (file)
@@ -435,13 +435,18 @@ static void RemovePaneFromDocks(wxAuiDockInfoArray& docks,
 // dock has rows with numbers 0,2,5, they will become 0,1,2
 static void RenumberDockRows(wxAuiDockInfoPtrArray& docks)
 {
-    int i, dock_count, j, pane_count;
+    int i, dock_count;
     for (i = 0, dock_count = docks.GetCount(); i < dock_count; ++i)
     {
         wxAuiDockInfo& dock = *docks.Item(i);
         dock.dock_row = i;
-        for (j = 0, pane_count = dock.panes.GetCount(); j < pane_count; ++j)
-            dock.panes.Item(j)->dock_row = i;
+        
+        // (BIW) I believe these lines are wrong because they are modifying
+        // the original pane structures, which should be avoided as much
+        // as possible.
+        
+        //for (j = 0, pane_count = dock.panes.GetCount(); j < pane_count; ++j)
+        //    dock.panes.Item(j)->dock_row = i;
     }
 }