- 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;