X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/37b6a42697bcba2a23f1eeb826c58c53074ccb34..9e565667d0f29605c948ad6e742310798e3b2d0d:/src/xrc/xh_wizrd.cpp diff --git a/src/xrc/xh_wizrd.cpp b/src/xrc/xh_wizrd.cpp index fd49ef89f7..97dc42b94d 100644 --- a/src/xrc/xh_wizrd.cpp +++ b/src/xrc/xh_wizrd.cpp @@ -1,5 +1,5 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: xh_wizrd.cpp +// Name: src/xrc/xh_wizrd.cpp // Purpose: XRC resource for wxWizard // Author: Vaclav Slavik // Created: 2003/03/01 @@ -18,7 +18,11 @@ #if wxUSE_XRC && wxUSE_WIZARDDLG #include "wx/xrc/xh_wizrd.h" -#include "wx/log.h" + +#ifndef WX_PRECOMP + #include "wx/log.h" +#endif + #include "wx/wizard.h" IMPLEMENT_DYNAMIC_CLASS(wxWizardXmlHandler, wxXmlResourceHandler) @@ -45,6 +49,7 @@ wxObject *wxWizardXmlHandler::DoCreateResource() GetText(wxT("title")), GetBitmap(), GetPosition()); + SetupWindow(wiz); wxWizard *old = m_wizard; m_wizard = wiz; @@ -70,7 +75,7 @@ wxObject *wxWizardXmlHandler::DoCreateResource() { if ( !m_instance ) { - wxLogError(wxT("wxWizardPage is abstract class, must be subclassed")); + ReportError("wxWizardPage is abstract class and must be subclassed"); return NULL; }