Fixing wxPython4 change.
This commit is contained in:
parent
8dc7b80bd3
commit
d6fbaed188
@ -119,7 +119,7 @@ class AttackDisplay(wx.ScrolledWindow):
|
|||||||
if self.attack.filetype == "png":
|
if self.attack.filetype == "png":
|
||||||
bmp = self.original
|
bmp = self.original
|
||||||
if not bmp.IsOk():
|
if not bmp.IsOk():
|
||||||
bmp = wx.EmptyImage(1,1)
|
bmp = wx.Image(1,1)
|
||||||
else:
|
else:
|
||||||
(originalwidth,originalheight) = (bmp.GetWidth(), bmp.GetHeight())
|
(originalwidth,originalheight) = (bmp.GetWidth(), bmp.GetHeight())
|
||||||
if self.win.fit:
|
if self.win.fit:
|
||||||
|
Loading…
Reference in New Issue
Block a user