X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f8efd2dfffcf23aa7ff72cea1cdba3cb8c88d9c4..c81394808bf7efd84e4294e44a9a9a7b7f6dd8a9:/src/xrc/xh_propdlg.cpp?ds=sidebyside diff --git a/src/xrc/xh_propdlg.cpp b/src/xrc/xh_propdlg.cpp index 96bd4e2a23..8a7b102e93 100644 --- a/src/xrc/xh_propdlg.cpp +++ b/src/xrc/xh_propdlg.cpp @@ -89,12 +89,14 @@ wxObject *wxPropertySheetDialogXmlHandler::DoCreateResource() } } else - wxLogError(wxT("Error in resource.")); + { + ReportError(n, "propertysheetpage child must be a window"); + } return wnd; } else { - wxLogError(wxT("Error in resource: no control within wxPropertySheetDialog's tag.")); + ReportError("propertysheetpage must have a window child"); return NULL; } } @@ -111,7 +113,8 @@ wxObject *wxPropertySheetDialogXmlHandler::DoCreateResource() GetStyle(), GetName()); - if (HasParam(wxT("icon"))) dlg->SetIcon(GetIcon(wxT("icon"), wxART_FRAME_ICON)); + if (HasParam(wxT("icon"))) + dlg->SetIcons(GetIconBundle(wxT("icon"), wxART_FRAME_ICON)); SetupWindow(dlg);