git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@301
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
if ( GetAutoLayout() )
Layout();
else {
+ // no child: go out !
+ if (!GetChildren()->First())
+ return;
+
// do we have exactly one child?
wxWindow *child = NULL;
for(wxNode *node = GetChildren()->First(); node; node = node->Next())
if ( GetAutoLayout() )
Layout();
else {
+ // no child: go out !
+ if (!GetChildren()->First())
+ return;
+
// do we have exactly one child?
wxWindow *child = NULL;
for(wxNode *node = GetChildren()->First(); node; node = node->Next())