Determine scale as a float so it's not clamped at 0

This commit is contained in:
Dan Williams 2006-09-24 21:53:39 -04:00
parent e2f82f02a0
commit f83567ba32

View File

@ -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)