[mapguide-commits] r7919 - branches/maestro-5.0.x/Maestro.Editors/LayerDefinition/Vector/Scales

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Fri Nov 22 07:08:17 PST 2013


Author: jng
Date: 2013-11-22 07:08:16 -0800 (Fri, 22 Nov 2013)
New Revision: 7919

Modified:
   branches/maestro-5.0.x/Maestro.Editors/LayerDefinition/Vector/Scales/ConditionListButtons.cs
Log:
#2383: Fix "Show In Legend" checkbox doing nothing for Composite Styles

Modified: branches/maestro-5.0.x/Maestro.Editors/LayerDefinition/Vector/Scales/ConditionListButtons.cs
===================================================================
--- branches/maestro-5.0.x/Maestro.Editors/LayerDefinition/Vector/Scales/ConditionListButtons.cs	2013-11-22 14:51:29 UTC (rev 7918)
+++ branches/maestro-5.0.x/Maestro.Editors/LayerDefinition/Vector/Scales/ConditionListButtons.cs	2013-11-22 15:08:16 UTC (rev 7919)
@@ -296,6 +296,7 @@
             var ar2 = m_area as IAreaVectorStyle2;
             var pt2 = m_point as IPointVectorStyle2;
             var ln2 = m_line as ILineVectorStyle2;
+            var cs2 = m_comp as ICompositeTypeStyle2;
 
             if (ar2 != null)
             {
@@ -312,6 +313,11 @@
                 ln2.ShowInLegend = ShowInLegend.Checked;
                 m_owner.FlagDirty();
             }
+            else if (cs2 != null)
+            {
+                cs2.ShowInLegend = ShowInLegend.Checked;
+                m_owner.FlagDirty();
+            }
         }
 
         private void btnExplodeTheme_Click(object sender, EventArgs e)



More information about the mapguide-commits mailing list