git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11101
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
bool btnLabelWasNext = TRUE;
// and this tells us whether we already had the default bitmap before
bool btnLabelWasNext = TRUE;
// and this tells us whether we already had the default bitmap before
- bool bmpWasDefault = TRUE;
btnLabelWasNext = m_page->GetNext() != (wxWizardPage *)NULL;
bmpWasDefault = !m_page->GetBitmap().Ok();
}
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;
// set the new one
m_page = page;
m_page->Show();
// change the bitmap if necessary (and if we have it at all)
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;
if ( m_statbmp && (bmpIsDefault != bmpWasDefault) )
{
wxBitmap bmp;