diff --git a/src/common/wincmn.cpp b/src/common/wincmn.cpp index 8cbef77168..27a560c9b9 100644 --- a/src/common/wincmn.cpp +++ b/src/common/wincmn.cpp @@ -243,7 +243,9 @@ bool wxWindowBase::CreateBase(wxWindowBase *parent, // size, this worked like this in wxWidgets 2.8 and before and generally // often makes sense for child windows (for top level ones it definitely // does not as the user should be able to resize the window) - if ( !wxTopLevelWindows.Find(this) ) // can't use IsTopLevel() from ctor + // + // note that we can't use IsTopLevel() from ctor + if ( !wxTopLevelWindows.Find((wxWindow *)this) ) SetMinSize(size); SetName(name);