From f83567ba32b1d2d5c8ca49542d6d142f091c5c20 Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Sun, 24 Sep 2006 21:53:39 -0400 Subject: [PATCH] Determine scale as a float so it's not clamped at 0 --- sugar/canvas/IconItem.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)