Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAtsushi Eno <atsushieno@gmail.com>2005-02-09 12:57:18 +0300
committerAtsushi Eno <atsushieno@gmail.com>2005-02-09 12:57:18 +0300
commitec0eea48902bab68cfde79b66a4fb2ec2292bcf0 (patch)
tree36bde055b7a1f2ce4d813785238e2061b87abeaf /mcs/class/System.XML/Mono.Xml.XPath
parentda19935fe02a282ccd0463f3a09307afe2ef0b23 (diff)
2005-02-09 Atsushi Enomoto <atsushi@ximian.com>
* LocationPathPattern.cs : Wildcard name is held as "", so we should also check "" for wildcard. Patch by Andrew Skiba. svn path=/trunk/mcs/; revision=40333
Diffstat (limited to 'mcs/class/System.XML/Mono.Xml.XPath')
-rw-r--r--mcs/class/System.XML/Mono.Xml.XPath/ChangeLog5
-rw-r--r--mcs/class/System.XML/Mono.Xml.XPath/LocationPathPattern.cs2
2 files changed, 6 insertions, 1 deletions
diff --git a/mcs/class/System.XML/Mono.Xml.XPath/ChangeLog b/mcs/class/System.XML/Mono.Xml.XPath/ChangeLog
index 0579af69a68..eaab47b4ecd 100644
--- a/mcs/class/System.XML/Mono.Xml.XPath/ChangeLog
+++ b/mcs/class/System.XML/Mono.Xml.XPath/ChangeLog
@@ -1,3 +1,8 @@
+2005-02-09 Atsushi Enomoto <atsushi@ximian.com>
+
+ * LocationPathPattern.cs : Wildcard name is held as "", so we should
+ also check "" for wildcard. Patch by Andrew Skiba.
+
2005-01-25 Atsushi Enomoto <atsushi@ximian.com>
* XPathEditableDocument.cs : eliminating "throw new Exception".
diff --git a/mcs/class/System.XML/Mono.Xml.XPath/LocationPathPattern.cs b/mcs/class/System.XML/Mono.Xml.XPath/LocationPathPattern.cs
index 7853d83b6e3..1461e96d4dd 100644
--- a/mcs/class/System.XML/Mono.Xml.XPath/LocationPathPattern.cs
+++ b/mcs/class/System.XML/Mono.Xml.XPath/LocationPathPattern.cs
@@ -72,7 +72,7 @@ namespace Mono.Xml.XPath {
if (patternPrevious == null && filter == null) {
NodeNameTest t = nodeTest as NodeNameTest;
if (t != null) {
- if (t.Name.Name == "*")
+ if (t.Name.Name == "*" || t.Name.Name.Length == 0)
return -.25;
return 0;
}