Determine scale as a float so it's not clamped at 0
This commit is contained in:
parent
e2f82f02a0
commit
f83567ba32
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user