QTfrontend/ui/widget/mapContainer.cpp
changeset 14460 3897da404301
parent 14416 96624a6cdb93
child 14666 95b1b9ea505a
--- 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();
     }
 }