git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37890
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
wxMDIParentFrame *mdiParent = wxDynamicCast(m_parent, wxMDIParentFrame);
if ( !mdiParent )
wxMDIParentFrame *mdiParent = wxDynamicCast(m_parent, wxMDIParentFrame);
if ( !mdiParent )
- wxLogError(wxT("Parent is not of type wxMDIParentFrame."));
+ {
+ wxLogError(wxT("Parent of wxMDIParentFrame must be wxMDIParentFrame."));
+ return NULL;
+ }
XRC_MAKE_INSTANCE(frame, wxMDIChildFrame);
XRC_MAKE_INSTANCE(frame, wxMDIChildFrame);