Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/sugar/canvas/IconItem.py
diff options
context:
space:
mode:
Diffstat (limited to 'sugar/canvas/IconItem.py')
-rw-r--r--sugar/canvas/IconItem.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sugar/canvas/IconItem.py b/sugar/canvas/IconItem.py
index 69b3555..a93a3d8 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)