[mapguide-commits] r9112 - trunk/Tools/Maestro/Maestro.AddIn.Rest/UI

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Mon Jan 2 02:42:09 PST 2017


Author: jng
Date: 2017-01-02 02:42:08 -0800 (Mon, 02 Jan 2017)
New Revision: 9112

Modified:
   trunk/Tools/Maestro/Maestro.AddIn.Rest/UI/NewRepresentationDialog.cs
Log:
#2506: Fix typo (should be "Representations", not "Representation")

Modified: trunk/Tools/Maestro/Maestro.AddIn.Rest/UI/NewRepresentationDialog.cs
===================================================================
--- trunk/Tools/Maestro/Maestro.AddIn.Rest/UI/NewRepresentationDialog.cs	2016-12-31 16:57:13 UTC (rev 9111)
+++ trunk/Tools/Maestro/Maestro.AddIn.Rest/UI/NewRepresentationDialog.cs	2017-01-02 10:42:08 UTC (rev 9112)
@@ -75,11 +75,11 @@
         private void btnSave_Click(object sender, EventArgs e)
         {
             dynamic repr = null;
-            if (!((IDictionary<string, object>)_config).ContainsKey("Representations")) 
+            if (!((IDictionary<string, object>)_config).ContainsKey(nameof(_config.Representations))) 
             {
-                _config.Representation = new ExpandoObject();   
+                _config.Representations = new ExpandoObject();   
             }
-            repr = _config.Representation;
+            repr = _config.Representations;
 
             dynamic conf = _ctrl.GetOptions();
             ((IDictionary<string, object>)repr)[_rep] = conf;



More information about the mapguide-commits mailing list