if a script is set, feature size can generate different maps
authornemo
Sun, 16 Dec 2018 10:42:50 -0500
changeset 14481 3897da404301
parent 14480 35d47e99f5e2
child 14482 9844450389a4
if a script is set, feature size can generate different maps
QTfrontend/ui/widget/mapContainer.cpp
--- a/QTfrontend/ui/widget/mapContainer.cpp	Sun Dec 16 10:35:43 2018 -0500
+++ b/QTfrontend/ui/widget/mapContainer.cpp	Sun Dec 16 10:42:50 2018 -0500
@@ -426,7 +426,7 @@
                    getDrawnMapData(),
                    m_script,
                    m_scriptparam,
-		           m_mapFeatureSize
+                   m_mapFeatureSize
                   );
 
     setHHLimit(0);
@@ -1077,8 +1077,8 @@
     //if (qAbs(m_prevMapFeatureSize-m_mapFeatureSize) > 4)
     {
         m_prevMapFeatureSize = m_mapFeatureSize;
-		if(m_mapInfo.type!= MapModel::HandDrawnMap)
-			updatePreview();
+        if(m_mapInfo.type!= MapModel::HandDrawnMap || m_script.length() > 0)
+            updatePreview();
     }
 }