[mapguide-commits] r7838 - trunk/Tools/Maestro/OSGeo.MapGuide.MaestroAPI/ObjectModels

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Wed Sep 4 07:09:14 PDT 2013


Author: jng
Date: 2013-09-04 07:09:13 -0700 (Wed, 04 Sep 2013)
New Revision: 7838

Modified:
   trunk/Tools/Maestro/OSGeo.MapGuide.MaestroAPI/ObjectModels/SymbolDefinition.cs
Log:
#2300: We left out inline CompoundSymbolDefinition elements as their inline SimpleSymbolDefinition elements still have this schema and version info that need to be stripped out.

Modified: trunk/Tools/Maestro/OSGeo.MapGuide.MaestroAPI/ObjectModels/SymbolDefinition.cs
===================================================================
--- trunk/Tools/Maestro/OSGeo.MapGuide.MaestroAPI/ObjectModels/SymbolDefinition.cs	2013-09-03 07:59:25 UTC (rev 7837)
+++ trunk/Tools/Maestro/OSGeo.MapGuide.MaestroAPI/ObjectModels/SymbolDefinition.cs	2013-09-04 14:09:13 UTC (rev 7838)
@@ -694,6 +694,15 @@
         {
             _vschema = null;
             versionField = null;
+            foreach (var sm in this.SimpleSymbol)
+            {
+                var ssym = sm.Item as ISimpleSymbolDefinition;
+                var csym = sm.Item as ICompoundSymbolDefinition;
+                if (ssym != null)
+                    ssym.RemoveSchemaAttributes();
+                else if (csym != null)
+                    csym.RemoveSchemaAttributes();
+            }
         }
 
         public static CompoundSymbolDefinition CreateDefault()



More information about the mapguide-commits mailing list