- wxWizardPage *p = NULL;
- if (m_instance)
- p = wxStaticCast(m_instance, wxWizardPage);
- else
- wxLogError(wxT("wxWizardPage is abstract class, must be subclassed"));
- p->Create(m_wizard, GetBitmap());
- page = p;
+ if ( !m_instance )
+ {
+ ReportError("wxWizardPage is abstract class and must be subclassed");
+ return NULL;
+ }
+
+ page = wxStaticCast(m_instance, wxWizardPage);
+ page->Create(m_wizard, GetBitmap());