X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1c067fe3c1e752658c63b4d556eb6a5468213860..7d6a4d96961eac84d05db8bb24c64d39003f6e54:/src/xrc/xh_dlg.cpp?ds=sidebyside diff --git a/src/xrc/xh_dlg.cpp b/src/xrc/xh_dlg.cpp index e7c0c44b8f..268d60f4f1 100644 --- a/src/xrc/xh_dlg.cpp +++ b/src/xrc/xh_dlg.cpp @@ -18,10 +18,13 @@ #if wxUSE_XRC #include "wx/xrc/xh_dlg.h" -#include "wx/dialog.h" -#include "wx/frame.h" -#include "wx/log.h" -#include "wx/intl.h" + +#ifndef WX_PRECOMP + #include "wx/intl.h" + #include "wx/log.h" + #include "wx/frame.h" + #include "wx/dialog.h" +#endif IMPLEMENT_DYNAMIC_CLASS(wxDialogXmlHandler, wxXmlResourceHandler) @@ -70,7 +73,7 @@ wxObject *wxDialogXmlHandler::DoCreateResource() if (HasParam(wxT("pos"))) dlg->Move(GetPosition()); if (HasParam(wxT("icon"))) - dlg->SetIcon(GetIcon(wxT("icon"), wxART_FRAME_ICON)); + dlg->SetIcons(GetIconBundle(wxT("icon"), wxART_FRAME_ICON)); SetupWindow(dlg);