Skip to content

Commit

Permalink
wxGUI/animation: fix exporting an animation overlaid with custom image (
Browse files Browse the repository at this point in the history
#3137)

Position (x, y coordinate) of overlaid image must be integer type.
  • Loading branch information
tmszi authored Sep 15, 2023
1 parent dc84b86 commit c5ab23c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gui/wxpython/animation/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -582,8 +582,8 @@ def _export(self, exportInfo, decorations):
# paste decorations
for decoration in decorations:
# add image
x = decoration["pos"][0] / 100.0 * size[0]
y = decoration["pos"][1] / 100.0 * size[1]
x = int(decoration["pos"][0] / 100.0 * size[0])
y = int(decoration["pos"][1] / 100.0 * size[1])
if decoration["name"] == "image":
decImage = wx.Image(decoration["file"])
elif decoration["name"] == "time":
Expand Down

0 comments on commit c5ab23c

Please sign in to comment.