diff --git a/src/common/wincmn.cpp b/src/common/wincmn.cpp index 27a560c9b9..847f6dec9f 100644 --- a/src/common/wincmn.cpp +++ b/src/common/wincmn.cpp @@ -245,7 +245,7 @@ bool wxWindowBase::CreateBase(wxWindowBase *parent, // does not as the user should be able to resize the window) // // note that we can't use IsTopLevel() from ctor - if ( !wxTopLevelWindows.Find((wxWindow *)this) ) + if ( size != wxDefaultSize && !wxTopLevelWindows.Find((wxWindow *)this) ) SetMinSize(size); SetName(name);