[mapguide-commits] r4461 - trunk/MgDev/Common/MapGuideCommon/MapLayer

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Tue Dec 22 02:37:23 EST 2009


Author: christinebao
Date: 2009-12-22 02:37:23 -0500 (Tue, 22 Dec 2009)
New Revision: 4461

Modified:
   trunk/MgDev/Common/MapGuideCommon/MapLayer/Map.cpp
Log:
Fix ticket https://trac.osgeo.org/mapguide/ticket/1175. (Submit on behalf of Spark Liu)
Failed to set map name using MgMap.Open

Modified: trunk/MgDev/Common/MapGuideCommon/MapLayer/Map.cpp
===================================================================
--- trunk/MgDev/Common/MapGuideCommon/MapLayer/Map.cpp	2009-12-22 06:09:33 UTC (rev 4460)
+++ trunk/MgDev/Common/MapGuideCommon/MapLayer/Map.cpp	2009-12-22 07:37:23 UTC (rev 4461)
@@ -500,9 +500,9 @@
     }
 
     Ptr<MgResourceIdentifier> resId = new MgResourceIdentifier(L"Session:" + sessionId + L"//" + mapName + L"." + MgResourceType::Map);
-
+    
+    MgResource::Open(m_resourceService, resId);
     m_name = mapName;
-    MgResource::Open(m_resourceService, resId);
 
     //Note: Layers and Groups are loaded on demand by UnpackLayersAndGroups
 



More information about the mapguide-commits mailing list