git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44514
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// shown, so are we (this arbitrariness is the reason for
// deprecating this function)
{
+ // Some apps (such as dialog editors) depend on an empty sizer still
+ // being laid out correctly and reporting the correct size and position.
+ if (m_sizer->GetChildren().GetCount() == 0)
+ return true;
+
for ( wxSizerItemList::compatibility_iterator
node = m_sizer->GetChildren().GetFirst();
node;