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:
arseny.kapoulkine 2009-11-08 11:27:40 +00:00
parent b0f0c03f9c
commit 4b2059d84d

View file

@ -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;
}