[Bugs] #3669 Labyrinth UNSP: image scaling broken in Labyrinth (mapa metales)

Sugar Labs Bugs bugtracker-noreply at sugarlabs.org
Tue Jun 5 21:47:30 EDT 2012


#3669: image scaling broken in Labyrinth (mapa metales)
------------------------------------------+---------------------------------
    Reporter:  walter                     |          Owner:  garycmartin                
        Type:  defect                     |         Status:  new                        
    Priority:  Unspecified by Maintainer  |      Milestone:  Unspecified by Release Team
   Component:  Labyrinth                  |        Version:  Git as of bugdate          
    Severity:  Unspecified                |       Keywords:                             
Distribution:  Unspecified                |   Status_field:  Unconfirmed                
------------------------------------------+---------------------------------
 Line 126 of ImageThought.py is passing float values to simple_scale.

 a simple patch of casting the floats to ints will fix the problem.

                         self.pic = self.orig_pic.scale_simple(int(pic_w),
 int(pic_h), scale)

 Version 12 running on 11.3.1

-- 
Ticket URL: <http://bugs.sugarlabs.org/ticket/3669>
Sugar Labs <http://sugarlabs.org/>
Sugar Labs bug tracking system


More information about the Bugs mailing list