[mapguide-commits] r7732 - trunk/MgDev/Server/src/Services/Rendering
svn_mapguide at osgeo.org
svn_mapguide at osgeo.org
Sun Aug 4 22:09:45 PDT 2013
Author: hubu
Date: 2013-08-04 22:09:44 -0700 (Sun, 04 Aug 2013)
New Revision: 7732
Modified:
trunk/MgDev/Server/src/Services/Rendering/FeaturePropRenderer.cpp
Log:
Submit on behalf of Andy Zhang.
Submit on behalf of Andy Zhang. Fix ticket #2331: http://trac.osgeo.org/mapguide/ticket/2332 : Feature count in selection panel is not correct if the layer has multiple styles
We should increase the feature count only when it is the initial pass.
Modified: trunk/MgDev/Server/src/Services/Rendering/FeaturePropRenderer.cpp
===================================================================
--- trunk/MgDev/Server/src/Services/Rendering/FeaturePropRenderer.cpp 2013-08-04 15:09:49 UTC (rev 7731)
+++ trunk/MgDev/Server/src/Services/Rendering/FeaturePropRenderer.cpp 2013-08-05 05:09:44 UTC (rev 7732)
@@ -41,7 +41,7 @@
void FeaturePropRenderer::StartFeature(RS_FeatureReader* feature,
- bool /*initialPass*/,
+ bool initialPass,
const RS_String* tooltip,
const RS_String* url,
const RS_String* theme,
@@ -49,6 +49,9 @@
double /*zExtrusion*/,
RS_ElevationType /*zOffsetType*/)
{
+ if (!initialPass)
+ return;
+
/*
//add feature ID to the selection set
if (m_selection)
More information about the mapguide-commits
mailing list