You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by jp...@locus.apache.org on 2000/07/18 01:00:17 UTC

cvs commit: xml-xerces/c/src/dom NodeIteratorImpl.cpp

jpolast     00/07/17 16:00:16

  Modified:    c/src/dom NodeIteratorImpl.cpp
  Log:
  bug fix for SHOW_ELEMENT flag incorrectly being retreived.
  contributed by Grace Yan and Joe Kesselman.
  
  Revision  Changes    Path
  1.10      +7 -2      xml-xerces/c/src/dom/NodeIteratorImpl.cpp
  
  Index: NodeIteratorImpl.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/dom/NodeIteratorImpl.cpp,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- NodeIteratorImpl.cpp	2000/03/02 19:54:03	1.9
  +++ NodeIteratorImpl.cpp	2000/07/17 23:00:16	1.10
  @@ -56,6 +56,10 @@
   
   /*
    * $Log: NodeIteratorImpl.cpp,v $
  + * Revision 1.10  2000/07/17 23:00:16  jpolast
  + * bug fix for SHOW_ELEMENT flag incorrectly being retreived.
  + * contributed by Grace Yan and Joe Kesselman.
  + *
    * Revision 1.9  2000/03/02 19:54:03  roddey
    * This checkin includes many changes done while waiting for the
    * 1.1.0 code to be finished. I can't list them all here, but a list is
  @@ -293,9 +297,9 @@
   		throw DOM_DOMException(DOM_DOMException::INVALID_STATE_ERR, null);
   
       if (fNodeFilter == 0) {
  -        return ((fWhatToShow & ((1 << node.getNodeType()) - 1)) != 0);
  +        return ((fWhatToShow & (1 << (node.getNodeType() - 1))) != 0);
       } else {
  -        return ((fWhatToShow & ((1 << node.getNodeType()) - 1)) != 0 )
  +        return ((fWhatToShow & (1 << (node.getNodeType() - 1))) != 0)
               && fNodeFilter->acceptNode(node) == DOM_NodeFilter::FILTER_ACCEPT;
       }
   }