maposmatic-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Maposmatic-dev] [PATCH] Transform best fit paper sizes into integers


From: Thomas Petazzoni
Subject: [Maposmatic-dev] [PATCH] Transform best fit paper sizes into integers
Date: Sun, 8 Aug 2010 09:46:08 +0200

Signed-off-by: Thomas Petazzoni <address@hidden>
---
 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

[Prev in Thread] Current Thread [Next in Thread]