X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/aaa0312528610470651609e54cf0b9b80b260f2e..2e14066008229145e2da7b9f05a478ce38631f83:/src/xrc/xmladv.cpp?ds=sidebyside diff --git a/src/xrc/xmladv.cpp b/src/xrc/xmladv.cpp index 729cd3454d..5087147e2f 100644 --- a/src/xrc/xmladv.cpp +++ b/src/xrc/xmladv.cpp @@ -30,7 +30,7 @@ #include "wx/xrc/xmlres.h" #ifndef WX_PRECOMP - #include "wx/string.h" + #include "wx/log.h" #endif // WX_PRECOMP // ============================================================================ @@ -60,8 +60,11 @@ wxAnimation wxXmlResourceHandler::GetAnimation(const wxString& param) if ( !ani.IsOk() ) { - wxLogError(_("XRC resource: Cannot create animation from '%s'."), - name.c_str()); + ReportParamError + ( + param, + wxString::Format("cannot create animation from \"%s\"", name) + ); return wxNullAnimation; }