diff options
Diffstat (limited to 'src/GraphicObjects/TemplatedControl.cs')
| -rw-r--r-- | src/GraphicObjects/TemplatedControl.cs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/GraphicObjects/TemplatedControl.cs b/src/GraphicObjects/TemplatedControl.cs index 75176c34..c1c48fc7 100644 --- a/src/GraphicObjects/TemplatedControl.cs +++ b/src/GraphicObjects/TemplatedControl.cs @@ -174,10 +174,9 @@ namespace Crow } else loadTemplate (Interface.Load (template, this)); - if (this.child == null) { + //if no template found, load default one + if (this.child == null) loadTemplate (); - loadDefaultValues (); - } //normal xml read using (XmlReader xr = new XmlTextReader (tmp, XmlNodeType.Element, null)) { |