From 4216998ec6b86a0e570b97420bb0830d59664fc0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laura=20Kl=C3=BCnder?= Date: Fri, 3 Nov 2017 13:00:06 +0100 Subject: [PATCH] cast elevation to float so we can multiply it with floats --- src/c3nav/mapdata/utils/svg.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/c3nav/mapdata/utils/svg.py b/src/c3nav/mapdata/utils/svg.py index 1508a972..eb3f92fa 100644 --- a/src/c3nav/mapdata/utils/svg.py +++ b/src/c3nav/mapdata/utils/svg.py @@ -193,7 +193,7 @@ class SVGImage: def add_shadow(self, geometry, elevation, clip_path=None): # add a shadow for the given geometry with the given elevation and, optionally, a clip path - elevation = min(elevation, 2) + elevation = float(min(elevation, 2)) blur_radius = elevation / 3 * 0.25 shadow_geom = translate(geometry.buffer(blur_radius),