BC++ compilation fix

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5573 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2000-01-21 21:51:51 +00:00
parent bea5687993
commit cfd885695e

View File

@@ -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