From 9ba32a516039e6d596ae8cf2eeba4a8f4b571786 Mon Sep 17 00:00:00 2001 From: jez <> Date: Wed, 28 May 2008 15:08:58 +0000 Subject: [PATCH] corrected compareNodes for the case where the two nodes are from different documents --- include/XPath/impl/xpath_object.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/XPath/impl/xpath_object.hpp b/include/XPath/impl/xpath_object.hpp index facc7a16..9994444e 100644 --- a/include/XPath/impl/xpath_object.hpp +++ b/include/XPath/impl/xpath_object.hpp @@ -138,7 +138,7 @@ int compareNodes(const DOM::Node& lhs, // different documents if(get_owner_document(lhs) != get_owner_document(rhs)) - return (lhs.getOwnerDocument().underlying_impl() < rhs.getOwnerDocument().underlying_impl()) ? 1 : -1; + return (get_owner_document(lhs).underlying_impl() < get_owner_document(rhs).underlying_impl()) ? 1 : -1; // ok, nodes belong to the same document, but do they belong to the document itself, or a document fragment, // or is it just floating free? if they both belong to a document fragment, is it the same fragment?