[mapguide-commits] r6792 - branches/2.4/MgDev/Web/src/mapviewerjava

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Tue Jun 19 04:34:34 PDT 2012


Author: jng
Date: 2012-06-19 04:34:34 -0700 (Tue, 19 Jun 2012)
New Revision: 6792

Modified:
   branches/2.4/MgDev/Web/src/mapviewerjava/mapframe.jsp
Log:
#1263: Force the use of . as the decimal separator when emitting out finite display scales to ajaxmappane.templ. This is for the Java viewer

Modified: branches/2.4/MgDev/Web/src/mapviewerjava/mapframe.jsp
===================================================================
--- branches/2.4/MgDev/Web/src/mapviewerjava/mapframe.jsp	2012-06-19 10:26:27 UTC (rev 6791)
+++ branches/2.4/MgDev/Web/src/mapviewerjava/mapframe.jsp	2012-06-19 11:34:34 UTC (rev 6792)
@@ -146,7 +146,7 @@
         int i = 0;
         while(iter.hasNext())
         {
-            scaleCreationCode = scaleCreationCode + "scales[" + i + "]=" + iter.next() + "; ";
+            scaleCreationCode = scaleCreationCode + "scales[" + i + "]=" + iter.next().toString().replace(',','.') + "; ";
             i++;
         }
         MgResourceIdentifier mapStateId = new MgResourceIdentifier("Session:" + sessionId + "//" + mapName + "." + MgResourceType.Map);



More information about the mapguide-commits mailing list