diff --git a/src/generic/wizard.cpp b/src/generic/wizard.cpp index 35c43ccc32..e01a58440d 100644 --- a/src/generic/wizard.cpp +++ b/src/generic/wizard.cpp @@ -317,7 +317,7 @@ wxSize wxWizard::GetPageSize() const { // make sure that the controls are created because otherwise m_width and // m_height would be both still -1 - DoCreateControls(); + wxConstCast(this, wxWizard)->DoCreateControls(); return wxSize(m_width, m_height); }