X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f1df09276caf8575eed4e9bf2689c69903a749a9..cf471cab8277f4cc2c19bce417356badf9e2ca49:/src/generic/wizard.cpp?ds=sidebyside diff --git a/src/generic/wizard.cpp b/src/generic/wizard.cpp index 9c0e773943..34ef1e7495 100644 --- a/src/generic/wizard.cpp +++ b/src/generic/wizard.cpp @@ -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