From 1a9df0f38dab9624c9e6fe34136f8ba68191450c Mon Sep 17 00:00:00 2001 From: meisnate12 Date: Wed, 2 Nov 2022 08:48:55 -0400 Subject: [PATCH] [182] cast to int --- VERSION | 2 +- modules/overlay.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/VERSION b/VERSION index 84cc9c22..8dd15dbd 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.17.3-develop181 +1.17.3-develop182 diff --git a/modules/overlay.py b/modules/overlay.py index 1c02db1a..a21cd9d4 100644 --- a/modules/overlay.py +++ b/modules/overlay.py @@ -436,9 +436,9 @@ class Overlay: else: return value - ho = new_cords[0] if new_cords and self.horizontal_offset is None else self.horizontal_offset + ho = int(new_cords[0]) if new_cords and self.horizontal_offset is None else self.horizontal_offset ha = new_cords[1] if new_cords and self.horizontal_align is None else self.horizontal_align - vo = new_cords[2] if new_cords and self.vertical_offset is None else self.vertical_offset + vo = int(new_cords[2]) if new_cords and self.vertical_offset is None else self.vertical_offset va = new_cords[3] if new_cords and self.vertical_align is None else self.vertical_align return get_cord(ho, canvas_box[0], box[0], ha), get_cord(vo, canvas_box[1], box[1], va)