[mapguide-commits] r8443 - trunk/MgDev/Server/src/Services/Drawing

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Tue Nov 11 23:26:03 PST 2014


Author: jng
Date: 2014-11-11 23:26:03 -0800 (Tue, 11 Nov 2014)
New Revision: 8443

Modified:
   trunk/MgDev/Server/src/Services/Drawing/ServerDrawingServiceUtil.cpp
Log:
#1727: Force uniqueness on the MgStringCollection returned by MgDrawingService::EnumerateLayers()

Modified: trunk/MgDev/Server/src/Services/Drawing/ServerDrawingServiceUtil.cpp
===================================================================
--- trunk/MgDev/Server/src/Services/Drawing/ServerDrawingServiceUtil.cpp	2014-11-12 07:23:36 UTC (rev 8442)
+++ trunk/MgDev/Server/src/Services/Drawing/ServerDrawingServiceUtil.cpp	2014-11-12 07:26:03 UTC (rev 8443)
@@ -80,7 +80,8 @@
     if (layerName)
     {
         wchar_t* name = WT_String::to_wchar(layerName.length(), layerName.unicode());
-        layerList->Add(name);
+        if (layerList->IndexOf(name) < 0)
+            layerList->Add(name);
         delete [] name;
     }
 



More information about the mapguide-commits mailing list