Signed-off-by: Thomas Petazzoni <[email protected]>
---
ocitysmap2/indexlib/multi_page_renderer.py | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/ocitysmap2/indexlib/multi_page_renderer.py
b/ocitysmap2/indexlib/multi_page_renderer.py
index 97a6f83..43f4505 100644
--- a/ocitysmap2/indexlib/multi_page_renderer.py
+++ b/ocitysmap2/indexlib/multi_page_renderer.py
@@ -86,6 +86,10 @@ class MultiPageStreetIndexRenderer:
if w > max_drawing_width:
max_drawing_width = w
+ # No street to render, bail out
+ if max_drawing_width == 0:
+ return
+
columns_count = int(self.rendering_area_w / max_drawing_width)
if columns_count == 0:
columns_count = 1
--
1.7.4.1