[mapguide-commits] r7208 - in sandbox/adsk/2.5k: . Common/CoordinateSystem

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Thu Nov 15 00:14:21 PST 2012


Author: baertelchen
Date: 2012-11-15 00:14:21 -0800 (Thu, 15 Nov 2012)
New Revision: 7208

Modified:
   sandbox/adsk/2.5k/
   sandbox/adsk/2.5k/Common/CoordinateSystem/CoordSysCategory.cpp
Log:
Fix CCoordinateSystemCategory::GetCoordinateSystems() to return *ALL* CS names, not just 1

Merged from http://svn.osgeo.org/mapguide/trunk/MgDev#7207

The [CCoordinateSystemCategory::GetCoordinateSystems] method got changed due to the implementation of RFC127.
It's supposed to return all CS names contained in the respective category.

It did, however, only return the first CS name several times due to an incorrect loop.
Fixed by changing [0] to [i].

Reviewed by Hugues.


Property changes on: sandbox/adsk/2.5k
___________________________________________________________________
Modified: svn:mergeinfo
   - /branches/2.4/MgDev:6749-6756,6777-6783,6785-6787,6789,6791-6794,6796-6801,6954-6962,6986-7006
/sandbox/rfc94:5099-5163
/trunk/MgDev:7190-7200
   + /branches/2.4/MgDev:6749-6756,6777-6783,6785-6787,6789,6791-6794,6796-6801,6954-6962,6986-7006
/sandbox/rfc94:5099-5163
/trunk/MgDev:7190-7200,7207

Modified: sandbox/adsk/2.5k/Common/CoordinateSystem/CoordSysCategory.cpp
===================================================================
--- sandbox/adsk/2.5k/Common/CoordinateSystem/CoordSysCategory.cpp	2012-11-15 08:08:54 UTC (rev 7207)
+++ sandbox/adsk/2.5k/Common/CoordinateSystem/CoordSysCategory.cpp	2012-11-15 08:14:21 UTC (rev 7208)
@@ -379,7 +379,7 @@
     std::vector<STRING> const& allCsNames = this->GetAllCsNames();
     for(size_t i = 0; i < allCsNames.size(); ++i)
     {
-        pCsColl->Add(allCsNames[0]);
+        pCsColl->Add(allCsNames[i]);
     }
 
     MG_CATCH_AND_THROW(L"MgCoordinateSystemCategory.GetCoordinateSystems")



More information about the mapguide-commits mailing list