diff options
author | Manuel Quiñones <manuq@laptop.org> | 2012-06-07 17:40:34 (GMT) |
---|---|---|
committer | Manuel Quiñones <manuq@laptop.org> | 2012-06-07 17:40:34 (GMT) |
commit | 2723459fffc670bcf23e79dc1558974c9e973dbc (patch) | |
tree | cd97524a59b8087ba9b027a8925fcc53f42dbbb4 | |
parent | b3571e5ac9bcc52eb97731af58151e1c55631016 (diff) |
Fix for image scaling, SL #3669
Casting the floats to ints fixes the problem. Patch from Walter
Bender, see ticket.
Signed-off-by: Manuel Quiñones <manuq@laptop.org>
-rw-r--r-- | src/ImageThought.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ImageThought.py b/src/ImageThought.py index 964aa99..f8bbd9c 100644 --- a/src/ImageThought.py +++ b/src/ImageThought.py @@ -123,7 +123,9 @@ class ImageThought (ResizableThought): if self.orig_pic and (force or not self.pic or self.pic.get_width() != pic_w or self.pic.get_height() != pic_h): - self.pic = self.orig_pic.scale_simple(pic_w, pic_h, scale) + self.pic = self.orig_pic.scale_simple(int(pic_w), + int(pic_h), scale) + def process_button_down (self, event, coords): if ResizableThought.process_button_down(self, event, coords): |