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
This commit is contained in:
arseny.kapoulkine 2010-08-29 15:47:36 +00:00
parent b75c5360f3
commit 012b712389

View File

@ -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)
{
}