Signed-off-by: Thomas Petazzoni <[email protected]>
---
 ocitysmap2/renderers.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/ocitysmap2/renderers.py b/ocitysmap2/renderers.py
index 60380d7..ce9276f 100644
--- a/ocitysmap2/renderers.py
+++ b/ocitysmap2/renderers.py
@@ -350,8 +350,8 @@ class PlainRenderer(Renderer):
         # Add a 'Custom' paper format to the list that perfectly matches the
         # bounding box.
         valid_sizes.append(('Best fit',
-                            min(paper_width_mm, paper_height_mm),
-                            max(paper_width_mm, paper_height_mm),
+                            int(min(paper_width_mm, paper_height_mm)),
+                            int(max(paper_width_mm, paper_height_mm)),
                             paper_width_mm < paper_height_mm,
                             paper_width_mm > paper_height_mm))
 
-- 
1.7.0.4


Reply via email to