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
1 changed files with 6 additions and 3 deletions
|
@ -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…
Add table
Reference in a new issue