[mapguide-commits] r7166 - trunk/Tools/Maestro/Maestro.Editors/LayerDefinition

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Mon Oct 29 08:58:03 PDT 2012


Author: jng
Date: 2012-10-29 08:58:02 -0700 (Mon, 29 Oct 2012)
New Revision: 7166

Modified:
   trunk/Tools/Maestro/Maestro.Editors/LayerDefinition/LayerPropertiesSectionCtrl.cs
Log:
#2159: Fix layer display name changes not registering. The problem is we're ignoring cell changes for checked rows. This submission fixes that.

Modified: trunk/Tools/Maestro/Maestro.Editors/LayerDefinition/LayerPropertiesSectionCtrl.cs
===================================================================
--- trunk/Tools/Maestro/Maestro.Editors/LayerDefinition/LayerPropertiesSectionCtrl.cs	2012-10-29 15:45:08 UTC (rev 7165)
+++ trunk/Tools/Maestro/Maestro.Editors/LayerDefinition/LayerPropertiesSectionCtrl.cs	2012-10-29 15:58:02 UTC (rev 7166)
@@ -191,6 +191,10 @@
                     _props.Add(pair);
                     _vl.AddPropertyMapping(pair);
                 }
+                else
+                {
+                    nsp.Value = displayName;
+                }
             }
             else //Turned off
             {
@@ -208,7 +212,7 @@
             if (e.RowIndex >= 0)
             {
                 var row = grdProperties.Rows[e.RowIndex];
-                if (e.ColumnIndex == 0) //checkbox
+                if (e.ColumnIndex == 0 || e.ColumnIndex == 2) //checkbox
                 {
                     OnPropertyMappingChanged((bool)row.Cells[0].Value, row.Cells[1].Value.ToString(), row.Cells[2].Value.ToString());
                 }



More information about the mapguide-commits mailing list