[mapguide-commits] r4961 - trunk/MgDev/Web/src/viewerfiles

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Thu Jun 17 15:05:44 EDT 2010


Author: brucedechant
Date: 2010-06-17 19:05:44 +0000 (Thu, 17 Jun 2010)
New Revision: 4961

Modified:
   trunk/MgDev/Web/src/viewerfiles/mainframe.templ
Log:
Fix for trac ticket 1381 - Map cannot display in  Firefox 3.0.x sometimes
https://trac.osgeo.org/mapguide/ticket/1381

Notes:
- Submitted on behalf of Ted Yang



Modified: trunk/MgDev/Web/src/viewerfiles/mainframe.templ
===================================================================
--- trunk/MgDev/Web/src/viewerfiles/mainframe.templ	2010-06-17 18:08:13 UTC (rev 4960)
+++ trunk/MgDev/Web/src/viewerfiles/mainframe.templ	2010-06-17 19:05:44 UTC (rev 4961)
@@ -403,7 +403,7 @@
 {
     curScale = scale;
     DisplayMapSize();
-    if(hasStatusbar == 1)
+    if(hasStatusbar == 1 && sbFrame.SetMapScaleMsg != null)
         sbFrame.SetMapScaleMsg("1: " + FormatScale(scale));
 }
 
@@ -568,7 +568,7 @@
 function OnSelectionChanged()
 {
     var selCount = GetMapFrame().GetSelectedCount();
-    if(hasStatusbar == 1)
+    if(hasStatusbar == 1 && sbFrame.SetMapScaleMsg != null)
     {
         var selLayers = GetMapFrame().GetSelectedLayers();
         if(selLayers != null && selLayers.length == 1)
@@ -683,7 +683,11 @@
     }
 
     var text = FormatLocalizedDecimal(w, 2) + " x " + FormatLocalizedDecimal(h, 2) + " (" + u + ")";
-    sbFrame.SetMapSizeMsg(text);
+
+    if(sbFrame.SetMapSizeMsg !=null)
+    {
+        sbFrame.SetMapSizeMsg(text);
+    }
 }
 
 function SetOptions(engUnit, latLonUnit)



More information about the mapguide-commits mailing list