aboutsummaryrefslogtreecommitdiffstatsci
path: root/src/GraphicObjects/TemplatedContainer.cs
diff options
context:
space:
mode:
authorjpbruyere <jp.bruyere@hotmail.com>2016-01-29 13:30:29 +0100
committerjpbruyere <jp.bruyere@hotmail.com>2016-01-29 13:30:29 +0100
commit0bf825fce6f1946034dbea6b1f7eb8d0dacdab8a (patch)
tree57eb7d724b1269401fa50dbc5efd3c824baa86fa /src/GraphicObjects/TemplatedContainer.cs
parentd33bdad20192033b0da77c2c1a0f151108767041 (diff)
debug renaming, debug template loading not skipping template tag in templatedContainer
Diffstat (limited to 'src/GraphicObjects/TemplatedContainer.cs')
-rw-r--r--src/GraphicObjects/TemplatedContainer.cs8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/GraphicObjects/TemplatedContainer.cs b/src/GraphicObjects/TemplatedContainer.cs
index 0bb11fc7..3003d486 100644
--- a/src/GraphicObjects/TemplatedContainer.cs
+++ b/src/GraphicObjects/TemplatedContainer.cs
@@ -76,8 +76,12 @@ namespace Crow
if (!xr.IsStartElement ())
continue;
- if (xr.Name == "Template")
- continue;
+
+ if (xr.Name == "Template"){
+ xr.Skip ();
+ if (!xr.IsStartElement ())
+ continue;
+ }
Type t = Type.GetType ("Crow." + xr.Name);
GraphicObject go = (GraphicObject)Activator.CreateInstance (t);