Explicitly cast wxWindowBase pointer to wxWindow before passing it to
wxWindowList::Find().
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62836
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// 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);