[mapguide-commits] r5462 - trunk/MgDev/Web/src/viewerfiles
svn_mapguide at osgeo.org
svn_mapguide at osgeo.org
Fri Dec 10 00:29:02 EST 2010
Author: hubu
Date: 2010-12-09 21:29:02 -0800 (Thu, 09 Dec 2010)
New Revision: 5462
Modified:
trunk/MgDev/Web/src/viewerfiles/mainframe.templ
trunk/MgDev/Web/src/viewerfiles/viewoptions.templ
Log:
Fix ticket: https://trac.osgeo.org/mapguide/ticket/1570
Modified: trunk/MgDev/Web/src/viewerfiles/mainframe.templ
===================================================================
--- trunk/MgDev/Web/src/viewerfiles/mainframe.templ 2010-12-10 05:28:11 UTC (rev 5461)
+++ trunk/MgDev/Web/src/viewerfiles/mainframe.templ 2010-12-10 05:29:02 UTC (rev 5462)
@@ -657,7 +657,7 @@
var mpu = GetMapFrame().GetMetersPerUnits();
var w = GetMapFrame().GetMapWidth() * mpu;
var h = GetMapFrame().GetMapHeight() * mpu;
- if(usEnglish) {
+ if(usEnglish == true) {
w *= 3.28083988128;
h *= 3.28083988128;
if(w >= 5279.7552 && h >= 5279.7552)
Modified: trunk/MgDev/Web/src/viewerfiles/viewoptions.templ
===================================================================
--- trunk/MgDev/Web/src/viewerfiles/viewoptions.templ 2010-12-10 05:28:11 UTC (rev 5461)
+++ trunk/MgDev/Web/src/viewerfiles/viewoptions.templ 2010-12-10 05:29:02 UTC (rev 5462)
@@ -57,7 +57,7 @@
document.onmousedown = OnMouseDown;
var parentRef = ParentRef();
- if(parentRef.GetMapFrame().IsEnglishUnits())
+ if(parentRef.GetMapFrame().IsEnglishUnits() == true)
document.getElementById("USEnglish").checked = true;
else
document.getElementById("Metric").checked = true;
More information about the mapguide-commits
mailing list