[mapguide-commits] r9115 - trunk/Tools/Maestro/Maestro.Editors/Fusion

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Wed Jan 11 06:14:45 PST 2017


Author: jng
Date: 2017-01-11 06:14:45 -0800 (Wed, 11 Jan 2017)
New Revision: 9115

Modified:
   trunk/Tools/Maestro/Maestro.Editors/Fusion/MapCtrl.cs
Log:
Fix NRE. We should be setting the id from the MapGroup and not the associated MapWidget that is null if it doesn't point to this MapGroup id

Fixes #2507

Modified: trunk/Tools/Maestro/Maestro.Editors/Fusion/MapCtrl.cs
===================================================================
--- trunk/Tools/Maestro/Maestro.Editors/Fusion/MapCtrl.cs	2017-01-11 14:05:30 UTC (rev 9114)
+++ trunk/Tools/Maestro/Maestro.Editors/Fusion/MapCtrl.cs	2017-01-11 14:14:45 UTC (rev 9115)
@@ -92,7 +92,7 @@
             _models = new BindingList<MapModel>();
             lstMaps.DataSource = _models;
             UpdateMapList();
-            txtMapId.Text = _widget.MapId;
+            txtMapId.Text = group.id;
 
             LoadMapOptions();
         }
@@ -172,6 +172,7 @@
 
         private void txtMapId_TextChanged(object sender, EventArgs e)
         {
+            _group.id = txtMapId.Text;
             if (_widget != null && txtMapId.Text != _widget.MapId)
             {
                 _widget.MapId = txtMapId.Text;



More information about the mapguide-commits mailing list