Skip to content

Commit

Permalink
wxGUI/psmap: fix showing image map element preview (#3193)
Browse files Browse the repository at this point in the history
  • Loading branch information
tmszi committed Sep 27, 2023
1 parent db16d0a commit 3462e8d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gui/wxpython/psmap/dialogs.py
Original file line number Diff line number Diff line change
Expand Up @@ -5971,10 +5971,10 @@ def ScaleToPreview(self, img):
return img
if w > h:
newW = self.previewSize[0]
newH = self.previewSize[0] * h / w
newH = self.previewSize[0] * h // w
else:
newH = self.previewSize[0]
newW = self.previewSize[0] * w / h
newW = self.previewSize[0] * w // h
return img.Scale(newW, newH, wx.IMAGE_QUALITY_HIGH)

def DrawWarningText(self, warning):
Expand Down

0 comments on commit 3462e8d

Please sign in to comment.