diff --git a/src/generic/wizard.cpp b/src/generic/wizard.cpp index 89a309e9e4..ec00f5a277 100644 --- a/src/generic/wizard.cpp +++ b/src/generic/wizard.cpp @@ -315,6 +315,10 @@ wxWizardPage *wxWizard::GetCurrentPage() const wxSize wxWizard::GetPageSize() const { + // make sure that the controls are created because otherwise m_width and + // m_height would be both still -1 + DoCreateControls(); + return wxSize(m_width, m_height); }