From 2bbceb457f29a1410b99eebbcd42cdb386691b38 Mon Sep 17 00:00:00 2001 From: jpbruyere Date: Sun, 29 Jan 2017 22:13:14 +0100 Subject: crowObjs type search debug, improve type search in ItemTemplate selection --- src/GraphicObjects/TemplatedControl.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/GraphicObjects/TemplatedControl.cs') diff --git a/src/GraphicObjects/TemplatedControl.cs b/src/GraphicObjects/TemplatedControl.cs index ba49f44f..4a3a2507 100644 --- a/src/GraphicObjects/TemplatedControl.cs +++ b/src/GraphicObjects/TemplatedControl.cs @@ -154,8 +154,10 @@ namespace Crow if (t == null) { Assembly a = Assembly.GetEntryAssembly (); foreach (Type expT in a.GetExportedTypes ()) { - if (expT.Name == xr.Name) + if (expT.Name == xr.Name) { t = expT; + break; + } } } GraphicObject go = (GraphicObject)Activator.CreateInstance (t); -- cgit v1.3.1-4-g156e