You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by tn...@apache.org on 2002/03/15 17:30:04 UTC

cvs commit: xml-xerces/c/src/xercesc/idom IDNodeIteratorImpl.cpp

tng         02/03/15 08:30:04

  Modified:    c/src/xercesc/idom IDNodeIteratorImpl.cpp
  Log:
  [Bug 6888] NodeIterator.  Retrofit this typo that was applied to Xerces-J, although this function "matchNodeOrParent" is not used in Xerces-C++....
  
  Revision  Changes    Path
  1.3       +10 -1     xml-xerces/c/src/xercesc/idom/IDNodeIteratorImpl.cpp
  
  Index: IDNodeIteratorImpl.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/xercesc/idom/IDNodeIteratorImpl.cpp,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- IDNodeIteratorImpl.cpp	4 Feb 2002 21:20:59 -0000	1.2
  +++ IDNodeIteratorImpl.cpp	15 Mar 2002 16:30:04 -0000	1.3
  @@ -56,6 +56,9 @@
   
   /*
    * $Log: IDNodeIteratorImpl.cpp,v $
  + * Revision 1.3  2002/03/15 16:30:04  tng
  + * [Bug 6888] NodeIterator.  Retrofit this typo that was applied to Xerces-J, although this function "matchNodeOrParent" is not used in Xerces-C++....
  + *
    * Revision 1.2  2002/02/04 21:20:59  tng
    * Add DOM 2 Level missing functions:
    *   1. NodeIterator::getRoot
  @@ -285,7 +288,7 @@
   /** Return node, if matches or any parent if matches. */
   IDOM_Node* IDNodeIteratorImpl::matchNodeOrParent (IDOM_Node* node) {
   
  -    for (IDOM_Node* n = node; n != fRoot; n = n->getParentNode()) {
  +    for (IDOM_Node* n = fCurrentNode; n != fRoot; n = n->getParentNode()) {
           if (node == n) return n;
       }
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-cvs-help@xml.apache.org