diff --git a/sugar/canvas/IconItem.py b/sugar/canvas/IconItem.py index 69b3555f..a93a3d8a 100644 --- a/sugar/canvas/IconItem.py +++ b/sugar/canvas/IconItem.py @@ -125,7 +125,7 @@ class IconView(goocanvas.ItemViewSimple, goocanvas.ItemView): int(size) + 1, int(size) + 1) dimensions = handle.get_dimension_data() - scale = size / dimensions[0] + scale = float(size) / float(dimensions[0]) ctx = cairo.Context(surface) ctx.scale(scale, scale)