XPath: Fixed minor root step bug - don't select empty nodes
git-svn-id: http://pugixml.googlecode.com/svn/trunk@215 99668b35-9821-0410-8761-19e4c4f06640
This commit is contained in:
parent
b0f0c03f9c
commit
4b2059d84d
@ -2500,10 +2500,13 @@ namespace pugi
|
||||
{
|
||||
xpath_node_set ns;
|
||||
|
||||
ns.push_back(c.root);
|
||||
if (c.root)
|
||||
{
|
||||
ns.push_back(c.root);
|
||||
|
||||
apply_predicates(ns, 0, c);
|
||||
|
||||
apply_predicates(ns, 0, c);
|
||||
}
|
||||
|
||||
return ns;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user