[mapguide-commits] r4604 - trunk/Tools/Maestro/Maestro/ResourceEditors/LayerEditorControls

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Sat Feb 20 18:52:48 EST 2010


Author: ksgeograf
Date: 2010-02-20 18:52:48 -0500 (Sat, 20 Feb 2010)
New Revision: 4604

Modified:
   trunk/Tools/Maestro/Maestro/ResourceEditors/LayerEditorControls/VectorLayer.cs
Log:
Maestro: Fixed issue #1270.

Modified: trunk/Tools/Maestro/Maestro/ResourceEditors/LayerEditorControls/VectorLayer.cs
===================================================================
--- trunk/Tools/Maestro/Maestro/ResourceEditors/LayerEditorControls/VectorLayer.cs	2010-02-20 23:42:11 UTC (rev 4603)
+++ trunk/Tools/Maestro/Maestro/ResourceEditors/LayerEditorControls/VectorLayer.cs	2010-02-20 23:52:48 UTC (rev 4604)
@@ -863,7 +863,6 @@
 			if (m_layer == null || m_layer.Item as OSGeo.MapGuide.MaestroAPI.VectorLayerDefinitionType == null || inUpdate)
 				return;
 
-			bool updated = false;
 			OSGeo.MapGuide.MaestroAPI.VectorLayerDefinitionType vldef = m_layer.Item as OSGeo.MapGuide.MaestroAPI.VectorLayerDefinitionType;
 
 			if (vldef.PropertyMapping == null)
@@ -885,33 +884,24 @@
 						ns.Name = n;
 						ns.Value = (string)dr["Display"];
 						vldef.PropertyMapping.Add(ns);
-						updated = true;
 					}
 					else
 					{
 						if (vldef.PropertyMapping[i].Value != (string)dr["Display"])
-						{
 							vldef.PropertyMapping[i].Value = (string)dr["Display"];
-							updated = true;
-						}
 					}
 				}
 				else
 				{
 					if (i < vldef.PropertyMapping.Count)
-					{
 						vldef.PropertyMapping.RemoveAt(i);
-						updated = true;
-					}
 				}
 			}
 
 			if (vldef.PropertyMapping.Count == 0)
 				vldef.PropertyMapping = null;
 
-			if (updated)
-				m_editor.HasChanged();
-			
+		    m_editor.HasChanged();
 		}
 
         private void AddScaleRangeButton_Click(object sender, EventArgs e)



More information about the mapguide-commits mailing list