]> git.saurik.com Git - wxWidgets.git/blobdiff - src/aui/framemanager.cpp
maximize bug fixed
[wxWidgets.git] / src / aui / framemanager.cpp
index c94279ccd65962b8d605d784e8b725e955965044..bdde5d3f329b6acc25e8b5e3c3cf15afe4fd8e39 100644 (file)
@@ -2319,7 +2319,8 @@ wxSizer* wxAuiManager::LayoutAll(wxAuiPaneInfoArray& panes,
                 LayoutAddDock(middle, *arr.Item(row), uiparts, spacer_only);
         }
 
-        cont->Add(middle, 1, wxEXPAND);
+        if (middle->GetChildren().GetCount() > 0)
+            cont->Add(middle, 1, wxEXPAND);