diff options
| author | jpbruyere <jp.bruyere@hotmail.com> | 2016-02-25 10:37:27 +0100 |
|---|---|---|
| committer | jpbruyere <jp.bruyere@hotmail.com> | 2016-02-25 11:31:21 +0100 |
| commit | 42fcd3657d6425005ed7f429fe9b73cfb6fcf1c6 (patch) | |
| tree | 87f081e4487881eb4be0142514033ab6c7bd9bd7 /src/GraphicObjects/TemplatedControl.cs | |
| parent | f927821fd5678a29e6272c7ad4bd95e11957188b (diff) | |
remove duplicate of LoadDefault for templated controls, add DEBUG_LOAD
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)) { |