[mapguide-commits] r5769 - trunk/Tools/Maestro/Maestro.Base/Editor
svn_mapguide at osgeo.org
svn_mapguide at osgeo.org
Tue May 10 08:18:09 EDT 2011
Author: jng
Date: 2011-05-10 05:18:08 -0700 (Tue, 10 May 2011)
New Revision: 5769
Modified:
trunk/Tools/Maestro/Maestro.Base/Editor/DrawingSourceEditor.cs
Log:
#1685: Fix exception when opening Drawing Sources. Yeah, you can't add a control to itself (not that I wanted to, and it wasn't even the right control in the first place!).
Modified: trunk/Tools/Maestro/Maestro.Base/Editor/DrawingSourceEditor.cs
===================================================================
--- trunk/Tools/Maestro/Maestro.Base/Editor/DrawingSourceEditor.cs 2011-05-10 12:09:27 UTC (rev 5768)
+++ trunk/Tools/Maestro/Maestro.Base/Editor/DrawingSourceEditor.cs 2011-05-10 12:18:08 UTC (rev 5769)
@@ -27,6 +27,7 @@
using ICSharpCode.Core;
using OSGeo.MapGuide.MaestroAPI.Resource;
using Maestro.Editors;
+using Maestro.Editors.DrawingSource;
namespace Maestro.Base.Editor
{
@@ -52,9 +53,9 @@
_init = true;
}
- var dsEditor = new DrawingSourceEditor();
+ var dsEditor = new DrawingSourceEditorCtrl();
dsEditor.Dock = DockStyle.Fill;
- dsEditor.Controls.Add(dsEditor);
+ panelBody.Controls.Add(dsEditor);
dsEditor.Bind(_edsvc);
}
More information about the mapguide-commits
mailing list