Don't attempt to take the size of invalid bitmap

This commit is contained in:
Jon Evans
2023-10-23 13:02:38 -04:00
parent 435e3fab8d
commit 4c1da16d6f
+1 -1
View File
@@ -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();