X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b0ee47ff76c278c053ac2ad36bb3129b0fcd050f..6dbaf73491042ef98cde2df3a3cf0b14da827278:/src/common/wincmn.cpp?ds=sidebyside diff --git a/src/common/wincmn.cpp b/src/common/wincmn.cpp index f71daad3b5..df455c9cfa 100644 --- a/src/common/wincmn.cpp +++ b/src/common/wincmn.cpp @@ -1277,7 +1277,7 @@ void wxWindowBase::SetConstraintSizes(bool recurse) while (node) { wxWindow *win = node->GetData(); - if ( !win->IsTopLevel() ) + if ( !win->IsTopLevel() && win->GetConstraints() ) win->SetConstraintSizes(); node = node->GetNext(); }