From: Benjamin Williams Date: Fri, 8 Feb 2008 13:55:57 +0000 (+0000) Subject: maximize bug fixed X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/3b58a205503304dff6445f5954e06a0d22d82203 maximize bug fixed git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51600 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/aui/framemanager.cpp b/src/aui/framemanager.cpp index c94279ccd6..bdde5d3f32 100644 --- a/src/aui/framemanager.cpp +++ b/src/aui/framemanager.cpp @@ -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);