#pragma hdrstop
#endif
+#if wxUSE_WIZARDDLG
+
#ifndef WX_PRECOMP
#include "wx/dynarray.h"
#include "wx/intl.h"
bool btnLabelWasNext = TRUE;
// and this tells us whether we already had the default bitmap before
- bool bmpWasDefault = TRUE;
+ int bmpWasDefault;
if ( m_page )
{
btnLabelWasNext = m_page->GetNext() != (wxWizardPage *)NULL;
bmpWasDefault = !m_page->GetBitmap().Ok();
}
+ else // no previous page
+ {
+ // always set the bitmap
+ bmpWasDefault = -1;
+ }
// set the new one
m_page = page;
m_page->Show();
// change the bitmap if necessary (and if we have it at all)
- bool bmpIsDefault = !m_page->GetBitmap().Ok();
+ int bmpIsDefault = !m_page->GetBitmap().Ok();
if ( m_statbmp && (bmpIsDefault != bmpWasDefault) )
{
wxBitmap bmp;
m_direction = direction;
}
+#endif // wxUSE_WIZARDDLG