From 012b712389792ad5916cc8c24f330c706822d9a4 Mon Sep 17 00:00:00 2001 From: "arseny.kapoulkine" Date: Sun, 29 Aug 2010 15:47:36 +0000 Subject: XPath: xpath_node attribute constructor now never constructs a non-attribute node git-svn-id: http://pugixml.googlecode.com/svn/trunk@690 99668b35-9821-0410-8761-19e4c4f06640 --- src/pugixml.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/pugixml.cpp b/src/pugixml.cpp index c2b26f0..f21ab7f 100644 --- a/src/pugixml.cpp +++ b/src/pugixml.cpp @@ -5562,7 +5562,7 @@ namespace pugi { } - xpath_node::xpath_node(const xml_attribute& attribute, const xml_node& parent): _node(parent), _attribute(attribute) + xpath_node::xpath_node(const xml_attribute& attribute, const xml_node& parent): _node(attribute ? parent : xml_node()), _attribute(attribute) { } -- cgit v1.2.3