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
commit2bbceb457f29a1410b99eebbcd42cdb386691b38 (patch)
treedfc4556205c31c66fb2b56c2ddf54694c7aa6bc2 /src/GraphicObjects/TemplatedControl.cs
parent8a25a19ee73e8b7c0c9726bbb2ce4ec918f4e905 (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);