Fixing wxPython4 change.

This commit is contained in:
Cas Cremers 2020-10-27 23:34:11 +01:00
parent 8dc7b80bd3
commit d6fbaed188

View File

@ -119,7 +119,7 @@ class AttackDisplay(wx.ScrolledWindow):
if self.attack.filetype == "png":
bmp = self.original
if not bmp.IsOk():
bmp = wx.EmptyImage(1,1)
bmp = wx.Image(1,1)
else:
(originalwidth,originalheight) = (bmp.GetWidth(), bmp.GetHeight())
if self.win.fit: