[mapguide-commits] r6694 - branches/2.4/MgDev/Desktop/MapViewer

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Fri May 25 03:01:00 EDT 2012


Author: jng
Date: 2012-05-25 00:00:59 -0700 (Fri, 25 May 2012)
New Revision: 6694

Modified:
   branches/2.4/MgDev/Desktop/MapViewer/MgThemeControlImpl.cs
Log:
mg-desktop: Show correct rule count for individual distributions

Modified: branches/2.4/MgDev/Desktop/MapViewer/MgThemeControlImpl.cs
===================================================================
--- branches/2.4/MgDev/Desktop/MapViewer/MgThemeControlImpl.cs	2012-05-24 18:45:36 UTC (rev 6693)
+++ branches/2.4/MgDev/Desktop/MapViewer/MgThemeControlImpl.cs	2012-05-25 07:00:59 UTC (rev 6694)
@@ -244,9 +244,11 @@
             queryOptions.AddFeatureProperty(prop.Name);
 
             MgFeatureReader featureReader = featureService.SelectFeatures(resId, layer.GetFeatureClassName(), queryOptions);
+            Dictionary<string, string> bucket = new Dictionary<string, string>();
             while (featureReader.ReadNext())
             {
                 String value = Util.GetFeaturePropertyValue(featureReader, prop.Name);
+                bucket[value] = value;
                 int propertyType = featureReader.GetPropertyType(prop.Name);
                 if (count == 0)
                 {
@@ -302,6 +304,8 @@
 
             txtMin.Text = minValue;
             txtMax.Text = maxValue;
+            if (THEME_INDIVIDUAL == cmbDistribution.SelectedValue.ToString())
+                count = bucket.Count;
             numRules.Value = featureCount = count;
         }
 



More information about the mapguide-commits mailing list