From a2a18e264a8a2d586f2c058ebb5b2b15b745804e Mon Sep 17 00:00:00 2001 From: Jean-Philippe Bruyère Date: Fri, 23 Feb 2018 12:51:16 +0100 Subject: instantiators dictionary no longer static but local to Interface --- src/GraphicObjects/TemplatedControl.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/GraphicObjects/TemplatedControl.cs') diff --git a/src/GraphicObjects/TemplatedControl.cs b/src/GraphicObjects/TemplatedControl.cs index 34e4ce07..e0e77fc0 100644 --- a/src/GraphicObjects/TemplatedControl.cs +++ b/src/GraphicObjects/TemplatedControl.cs @@ -133,9 +133,9 @@ namespace Crow this.ClearTemplateBinding(); if (template == null) { - if (!Interface.DefaultTemplates.ContainsKey (this.GetType ().FullName)) + if (!CurrentInterface.DefaultTemplates.ContainsKey (this.GetType ().FullName)) throw new Exception (string.Format ("No default template found for '{0}'", this.GetType ().FullName)); - this.SetChild (CurrentInterface.Load (Interface.DefaultTemplates[this.GetType ().FullName])); + this.SetChild (CurrentInterface.Load (CurrentInterface.DefaultTemplates[this.GetType ().FullName])); }else this.SetChild (template); } -- cgit v1.3.1-4-g156e