min_width can be none

This commit is contained in:
Laura Klünder 2018-12-06 22:23:42 +01:00
parent 0937b078f1
commit 22bdd340eb

View file

@ -20,7 +20,7 @@ class MapRenderer:
self.scale = scale
self.access_permissions = set(access_permissions) if access_permissions else set()
self.full_levels = full_levels
self.min_width = min_width/self.scale
self.min_width = min_width/self.scale if min_width else None
self.width = int(round((maxx - minx) * scale))
self.height = int(round((maxy - miny) * scale))