From bd9172e9d20a133ebc9f9a66cf6b328c497d8c17 Mon Sep 17 00:00:00 2001 From: Hendy Racher Date: Fri, 15 May 2015 01:01:34 +0100 Subject: [PATCH] updated build to 1.5.1 code comment --- appveyor.yml | 2 +- source/nuPickers/Shared/XmlDataSource/XmlDataSource.cs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/appveyor.yml b/appveyor.yml index 0b22463..460e5df 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,5 +1,5 @@ # version format -version: 1.5.0.{build} +version: 1.5.1.{build} # Do not build on tags skip_tags: true diff --git a/source/nuPickers/Shared/XmlDataSource/XmlDataSource.cs b/source/nuPickers/Shared/XmlDataSource/XmlDataSource.cs index 5bdd256..3773cab 100644 --- a/source/nuPickers/Shared/XmlDataSource/XmlDataSource.cs +++ b/source/nuPickers/Shared/XmlDataSource/XmlDataSource.cs @@ -52,6 +52,7 @@ public IEnumerable GetEditorDataItems(int currentId, int parentI if (xmlDocument != null) { + // really the logic is self-or-parent-or-root int ancestorOrSelfId = currentId > 0 ? currentId : parentId > 0 ? parentId : -1; string xPath = this.XPath.Replace("$ancestorOrSelf", string.Concat("/descendant::*[@id='", ancestorOrSelfId, "']"));