]> git.saurik.com Git - wxWidgets.git/commitdiff
maximize bug fixed
authorBenjamin Williams <bwilliams@kirix.com>
Fri, 8 Feb 2008 13:55:57 +0000 (13:55 +0000)
committerBenjamin Williams <bwilliams@kirix.com>
Fri, 8 Feb 2008 13:55:57 +0000 (13:55 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51600 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

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