X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/de5d5cc0fac7d4618d179132e06e579b6cc416a8..aecf930c5e84287e55ec4234afbe8c97ca41e261:/src/xrc/xh_mdi.cpp?ds=sidebyside diff --git a/src/xrc/xh_mdi.cpp b/src/xrc/xh_mdi.cpp index 95fa08e21e..50a7ed1cb7 100644 --- a/src/xrc/xh_mdi.cpp +++ b/src/xrc/xh_mdi.cpp @@ -88,7 +88,7 @@ wxWindow *wxMdiXmlHandler::CreateFrame() if ( !mdiParent ) { - wxLogError(wxT("Parent of wxMDIChildFrame must be wxMDIParentFrame.")); + ReportError("parent of wxMDIChildFrame must be wxMDIParentFrame"); return NULL; } @@ -117,7 +117,7 @@ wxObject *wxMdiXmlHandler::DoCreateResource() { wxFrame* f = wxDynamicCast(frame, wxFrame); if (f) - f->SetIcon(GetIcon(wxT("icon"), wxART_FRAME_ICON)); + f->SetIcons(GetIconBundle(wxT("icon"), wxART_FRAME_ICON)); } SetupWindow(frame);