Browse Source

Don't attempt to take the size of invalid bitmap

newinvert
Jon Evans 2 years ago
parent
commit
4c1da16d6f
  1. 2
      common/widgets/bitmap_button.cpp

2
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();

Loading…
Cancel
Save