Web · Wiki · Activities · Blog · Lists · Chat · Meeting · Bugs · Git · Translate · Archive · People · Donate

Commit 2723459fffc670bcf23e79dc1558974c9e973dbc

  • Tree SHA1: cd97524
  • Parent SHA1: b3571e5 (Commit from Sugar Labs: Translation System by user cjl.: 1 of 93 messages translated (24 fuzzy).)
  • raw diff | raw patch
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>
  
123123
124124 if self.orig_pic and (force or not self.pic or self.pic.get_width() != pic_w
125125 or self.pic.get_height() != pic_h):
126 self.pic = self.orig_pic.scale_simple(pic_w, pic_h, scale)
126 self.pic = self.orig_pic.scale_simple(int(pic_w),
127 int(pic_h), scale)
128
127129
128130 def process_button_down (self, event, coords):
129131 if ResizableThought.process_button_down(self, event, coords):