From 4044ed681129ff420bfce9260286cb12eda4209a Mon Sep 17 00:00:00 2001 From: Tomas Zigo <50632337+tmszi@users.noreply.github.com> Date: Fri, 15 Sep 2023 07:53:06 +0200 Subject: [PATCH] wxGUI/animation: fix exporting an animation overlaid with custom image (#3137) Position (x, y coordinate) of overlaid image must be integer type. --- gui/wxpython/animation/controller.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gui/wxpython/animation/controller.py b/gui/wxpython/animation/controller.py index 68a4823328f..cc103cc1eba 100644 --- a/gui/wxpython/animation/controller.py +++ b/gui/wxpython/animation/controller.py @@ -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":