]> git.saurik.com Git - wxWidgets.git/blobdiff - src/aui/framemanager.cpp
don't generate duplicate resume events for PBT_APMRESUMEAUTOMATIC
[wxWidgets.git] / src / aui / framemanager.cpp
index 4c856f2c52b6c2c4a2ae8dc2a4dc1135e07d7b1a..b4ee254fd6551c10c6ebcc59eef1150be0e63957 100644 (file)
@@ -2363,7 +2363,8 @@ wxSizer* wxAuiManager::LayoutAll(wxAuiPaneInfoArray& panes,
                 LayoutAddDock(middle, *arr.Item(row), uiparts, spacer_only);
         }
 
                 LayoutAddDock(middle, *arr.Item(row), uiparts, spacer_only);
         }
 
-        cont->Add(middle, 1, wxEXPAND);
+        if (middle->GetChildren().GetCount() > 0)
+            cont->Add(middle, 1, wxEXPAND);