X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f1df09276caf8575eed4e9bf2689c69903a749a9..5f9fd7ea86d211e3681a71c9f70303aa72b5de3c:/src/generic/wizard.cpp diff --git a/src/generic/wizard.cpp b/src/generic/wizard.cpp index 9c0e773943..fdd9dc7a8c 100644 --- a/src/generic/wizard.cpp +++ b/src/generic/wizard.cpp @@ -185,7 +185,7 @@ wxWizard::wxWizard(wxWindow *parent, if ( pos == wxDefaultPosition ) { - Centre(); + CentreOnScreen(); } } @@ -249,7 +249,12 @@ bool wxWizard::ShowPage(wxWizardPage *page, bool goingForward) bool bmpIsDefault = !m_page->GetBitmap().Ok(); if ( m_statbmp && (bmpIsDefault != bmpWasDefault) ) { - m_statbmp->SetBitmap(bmpIsDefault ? m_bitmap : m_page->GetBitmap()); + wxBitmap bmp; + if ( bmpIsDefault ) + bmp = m_bitmap; + else + bmp = m_page->GetBitmap(); + m_statbmp->SetBitmap(bmp); } // and update the buttons state