X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0a089246e73fe5eed585feeaf08ddba073bc9df4..9859d369b49e35a1cad0f760173e165f974fb6cb:/src/generic/wizard.cpp diff --git a/src/generic/wizard.cpp b/src/generic/wizard.cpp index b9e6ecae67..7973669650 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 @@ -643,7 +643,10 @@ bool wxWizard::ShowPage(wxWizardPage *page, bool goingForward) bool hasNext = HasNextPage(m_page); if ( btnLabelWasNext != hasNext ) { - m_btnNext->SetLabel(hasNext ? _("&Next >") : _("&Finish")); + if ( hasNext ) + m_btnNext->SetLabel(_("&Next >")); + else + m_btnNext->SetLabel(_("&Finish")); } // nothing to do: the label was already correct