You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by el...@apache.org on 2002/03/12 19:41:49 UTC
cvs commit: xml-xerces/java/src/org/apache/xerces/dom NodeIteratorImpl.java
elena 02/03/12 10:41:49
Modified: java/src/org/apache/xerces/dom NodeIteratorImpl.java
Log:
Applying patch suggested by Joe Kesselman. This fixes the following bug:
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6888
Revision Changes Path
1.8 +1 -1 xml-xerces/java/src/org/apache/xerces/dom/NodeIteratorImpl.java
Index: NodeIteratorImpl.java
===================================================================
RCS file: /home/cvs/xml-xerces/java/src/org/apache/xerces/dom/NodeIteratorImpl.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- NodeIteratorImpl.java 29 Jan 2002 01:15:07 -0000 1.7
+++ NodeIteratorImpl.java 12 Mar 2002 18:41:49 -0000 1.8
@@ -276,7 +276,7 @@
/** Return node, if matches or any parent if matches. */
Node matchNodeOrParent(Node node) {
- for (Node n = node; n != fRoot; n = n.getParentNode()) {
+ for (Node n = fCurrentNode; n != fRoot; n = n.getParentNode()) {
if (node == n) return n;
}
return null;
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-cvs-help@xml.apache.org