diff --git a/src/generic/wizard.cpp b/src/generic/wizard.cpp index 3dfd4fb0da..69dbca06f4 100644 --- a/src/generic/wizard.cpp +++ b/src/generic/wizard.cpp @@ -904,9 +904,9 @@ void wxWizard::SetBitmap(const wxBitmapBundle& bitmap) void wxWizard::WXHandleDPIChanged(wxDPIChangedEvent& event) { - wxBitmap bmp; if ( m_statbmp ) { + wxBitmap bmp; if ( m_page ) bmp = m_page->GetBitmap(); if ( !bmp.IsOk() )