diff --git a/include/wx/generic/wizard.h b/include/wx/generic/wizard.h index b6dd5fc467..6c9b35b860 100644 --- a/include/wx/generic/wizard.h +++ b/include/wx/generic/wizard.h @@ -47,7 +47,7 @@ public: virtual wxWizardPage *GetCurrentPage() const; virtual void SetPageSize(const wxSize& size); virtual wxSize GetPageSize() const; - virtual void Fit(const wxWizardPage *firstPage); + virtual void FitToPage(const wxWizardPage *firstPage); // implementation only from now on // ------------------------------- diff --git a/include/wx/wizard.h b/include/wx/wizard.h index fd47de64a8..e2a578c2a3 100644 --- a/include/wx/wizard.h +++ b/include/wx/wizard.h @@ -185,7 +185,7 @@ public: // pages in which case it will only increase the page size if needed (this // may be useful if not all pages are accessible from the first one by // default) - virtual void Fit(const wxWizardPage *firstPage) = 0; + virtual void FitToPage(const wxWizardPage *firstPage) = 0; }; // include the real class declaration diff --git a/src/generic/wizard.cpp b/src/generic/wizard.cpp index d7c6332f29..c57773d6ce 100644 --- a/src/generic/wizard.cpp +++ b/src/generic/wizard.cpp @@ -280,7 +280,7 @@ void wxWizard::SetPageSize(const wxSize& size) m_sizePage = size; } -void wxWizard::Fit(const wxWizardPage *page) +void wxWizard::FitToPage(const wxWizardPage *page) { // otherwise it will have no effect now as it's too late... wxASSERT_MSG( !WasCreated(), _T("should be called before RunWizard()!") );