maposmatic-dev
[Top][All Lists]
Advanced

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

[Maposmatic-dev] [PATCH] Fix the wizard for the multipage layout


From: gael . utard
Subject: [Maposmatic-dev] [PATCH] Fix the wizard for the multipage layout
Date: Fri, 30 Mar 2012 15:44:01 +0200

From: Gael UTARD <address@hidden>

Signed-off-by: Gael UTARD <address@hidden>
---
 www/media/js/newmap.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/www/media/js/newmap.js b/www/media/js/newmap.js
index 4198dc1..14f084c 100644
--- a/www/media/js/newmap.js
+++ b/www/media/js/newmap.js
@@ -123,7 +123,7 @@ function filterAllowedPaper(paperlist)
     else
       $(item).hide();
 
-    if (paper == "Best fit") {
+    if (paperDef != null && paper == "Best fit") {
       paperSizeText = $("label em[class='papersize']", item);
       width_cm = paperDef[1] / 10;
       height_cm = paperDef[2] / 10;
-- 
1.7.5.4




reply via email to

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