git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5573
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
bool bmpIsDefault = !m_page->GetBitmap().Ok();
if ( m_statbmp && (bmpIsDefault != bmpWasDefault) )
{
bool bmpIsDefault = !m_page->GetBitmap().Ok();
if ( m_statbmp && (bmpIsDefault != bmpWasDefault) )
{
- m_statbmp->SetBitmap(bmpIsDefault ? m_bitmap : m_page->GetBitmap());
+ wxBitmap bmp;
+ if ( bmpIsDefault )
+ bmp = m_bitmap;
+ else
+ bmp = m_page->GetBitmap();
+ m_statbmp->SetBitmap(bmp);
}
// and update the buttons state
}
// and update the buttons state