diff options
| author | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2018-02-06 07:07:57 +0100 |
|---|---|---|
| committer | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2018-02-06 07:07:57 +0100 |
| commit | a330b907a9c9252c480ea352606d961bdc7c3ecb (patch) | |
| tree | 668d654fc989beac33c1f07d788606d9eeec5b13 /src/GraphicObjects | |
| parent | 5aa236608a006dd8f529b791a0ae2f9992902bc0 (diff) | |
:book:, default item template loading if none defined for TemplatedGroup
Diffstat (limited to 'src/GraphicObjects')
| -rw-r--r-- | src/GraphicObjects/TemplatedGroup.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/GraphicObjects/TemplatedGroup.cs b/src/GraphicObjects/TemplatedGroup.cs index 81ea25fb..55726b50 100644 --- a/src/GraphicObjects/TemplatedGroup.cs +++ b/src/GraphicObjects/TemplatedGroup.cs @@ -71,9 +71,9 @@ namespace Crow /// /// ItemTemplate file may contains either a single template without the /// ItemTemplate enclosing tag, or several item templates each enclosed - /// in a separate tag + /// in a separate tag. /// </summary> - [XmlAttributeAttribute][DefaultValue("#Crow.Templates.ItemTemplate.goml")] + [XmlAttributeAttribute] public string ItemTemplate { get { return _itemTemplate; } set { @@ -344,7 +344,7 @@ namespace Crow } string getItempKey(Type dataType, object o){ try { - return dataType.GetProperty (_dataTest).GetGetMethod ().Invoke (o, null).ToString(); + return dataType.GetProperty (_dataTest).GetGetMethod ().Invoke (o, null)?.ToString(); } catch { return dataType.FullName; } |