[mapguide-commits] r6058 - trunk/MgDev/Server/src/Services/Mapping

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Thu Aug 11 04:06:51 EDT 2011


Author: liuar
Date: 2011-08-11 01:06:51 -0700 (Thu, 11 Aug 2011)
New Revision: 6058

Modified:
   trunk/MgDev/Server/src/Services/Mapping/MappingUtil.cpp
Log:
Submit on behalf of Sam Wang
Implements RFC 114 - Extend MapGuide API to Support Save Points
Ticket: http://trac.osgeo.org/mapguide/ticket/1737
+++++++++++++++++++++++++++
Fixed a small logic error which causes layer stylization failed.

Modified: trunk/MgDev/Server/src/Services/Mapping/MappingUtil.cpp
===================================================================
--- trunk/MgDev/Server/src/Services/Mapping/MappingUtil.cpp	2011-08-11 01:38:40 UTC (rev 6057)
+++ trunk/MgDev/Server/src/Services/Mapping/MappingUtil.cpp	2011-08-11 08:06:51 UTC (rev 6058)
@@ -503,7 +503,10 @@
 
                     //extract hyperlink and tooltip info
                     if (!vl->GetToolTip().empty()) layerInfo.hastooltips() = true;
-                    if (!vl->GetUrlData() && !vl->GetUrlData()->GetUrlContent().empty()) layerInfo.hashyperlinks() = true;
+                    if (vl->GetUrlData() && !vl->GetUrlData()->GetUrlContent().empty())
+                    {
+                        layerInfo.hashyperlinks() = true;
+                    }
 
                     //set up the property name mapping -- it tells us what
                     //string the viewer should be displaying as the name of each



More information about the mapguide-commits mailing list