X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/29fbbf8967e4c4b3174a4bc45a9007b92ecb0de7..3b58a205503304dff6445f5954e06a0d22d82203:/src/aui/framemanager.cpp 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);