diff options
| author | jpbruyere <jp.bruyere@hotmail.com> | 2016-01-29 13:30:29 +0100 |
|---|---|---|
| committer | jpbruyere <jp.bruyere@hotmail.com> | 2016-01-29 13:30:29 +0100 |
| commit | 0bf825fce6f1946034dbea6b1f7eb8d0dacdab8a (patch) | |
| tree | 57eb7d724b1269401fa50dbc5efd3c824baa86fa /src/GraphicObjects/TemplatedContainer.cs | |
| parent | d33bdad20192033b0da77c2c1a0f151108767041 (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.cs | 8 |
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); |