[mapguide-commits] r6657 - trunk/Tools/Maestro/Maestro.Editors/MapDefinition

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Thu May 17 10:10:31 EDT 2012


Author: jng
Date: 2012-05-17 07:10:30 -0700 (Thu, 17 May 2012)
New Revision: 6657

Modified:
   trunk/Tools/Maestro/Maestro.Editors/MapDefinition/MapLayersSectionCtrl.cs
Log:
#1967: If dropping a layer onto another layer in the Map Definition editor, treat that layer as the drop target's sibling and add it to that drop target's parent group.

Modified: trunk/Tools/Maestro/Maestro.Editors/MapDefinition/MapLayersSectionCtrl.cs
===================================================================
--- trunk/Tools/Maestro/Maestro.Editors/MapDefinition/MapLayersSectionCtrl.cs	2012-05-16 17:12:29 UTC (rev 6656)
+++ trunk/Tools/Maestro/Maestro.Editors/MapDefinition/MapLayersSectionCtrl.cs	2012-05-17 14:10:30 UTC (rev 6657)
@@ -997,7 +997,18 @@
                 {
                     var gi = node.Tag as GroupItem;
                     if (gi != null)
+                    {
                         parent = gi.Tag;
+                    }
+                    else
+                    {
+                        if (node.Parent != null)
+                        {
+                            gi = node.Parent.Tag as GroupItem;
+                            if (gi != null)
+                                parent = gi.Tag;
+                        }
+                    }
                 }
 
                 int added = 0;



More information about the mapguide-commits mailing list