X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f1df09276caf8575eed4e9bf2689c69903a749a9..34153050fe525ca6c46f259b638fae5590a87290:/src/generic/wizard.cpp 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