X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0a089246e73fe5eed585feeaf08ddba073bc9df4..588f410058fc3d867c6e7ae3a19540fc1343c53f:/src/generic/wizard.cpp diff --git a/src/generic/wizard.cpp b/src/generic/wizard.cpp index b9e6ecae67..385a10d8b8 100644 --- a/src/generic/wizard.cpp +++ b/src/generic/wizard.cpp @@ -36,10 +36,10 @@ #include "wx/statbmp.h" #include "wx/button.h" #include "wx/settings.h" + #include "wx/sizer.h" #endif //WX_PRECOMP #include "wx/statline.h" -#include "wx/sizer.h" #include "wx/wizard.h" @@ -631,7 +631,7 @@ bool wxWizard::ShowPage(wxWizardPage *page, bool goingForward) if ( !bmpPrev.Ok() ) bmpPrev = m_bitmap; - if ( bmp != bmpPrev ) + if ( !bmp.IsSameAs(bmpPrev) ) m_statbmp->SetBitmap(bmp); } #endif // wxUSE_STATBMP