aboutsummaryrefslogtreecommitdiffstatsci
path: root/src/GraphicObjects/TemplatedControl.cs
diff options
context:
space:
mode:
authorjpbruyere <jp.bruyere@hotmail.com>2017-01-29 22:13:14 +0100
committerjpbruyere <jp.bruyere@hotmail.com>2017-01-29 22:13:14 +0100
commite0043f71c2bb12da29a1b2efd8925be54923af16 (patch)
treedea46011833e457a2316c131b9840969e2bb5c78 /src/GraphicObjects/TemplatedControl.cs
parentd341658c5ea7d20d06d441b5aa11a13414fbe073 (diff)
crowObjs type search debug, improve type search in ItemTemplate selection
Diffstat (limited to 'src/GraphicObjects/TemplatedControl.cs')
-rw-r--r--src/GraphicObjects/TemplatedControl.cs4
1 files changed, 3 insertions, 1 deletions
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);