diff --git a/common/widgets/bitmap_button.cpp b/common/widgets/bitmap_button.cpp index 07436a54d4..dc3168b9c0 100644 --- a/common/widgets/bitmap_button.cpp +++ b/common/widgets/bitmap_button.cpp @@ -315,7 +315,7 @@ void BITMAP_BUTTON::OnPaint( wxPaintEvent& aEvent ) if( bmpImg.IsOk() ) bmpImg.SetScaleFactor( scale ); } - else + else if( bmp.IsOk() ) { bmpImg = bmp.GetBitmapFor( this ); bmSize = bmpImg.GetSize();