You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by ar...@locus.apache.org on 2000/07/13 02:08:39 UTC

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

aruna1      00/07/12 17:08:39

  Modified:    c/src/dom CommonParentNode.cpp
  Log:
  Fixed insertNode for assigning correct link to previous siblings and marking the correct head for first sibling.
  
  Revision  Changes    Path
  1.2       +3 -2      xml-xerces/c/src/dom/CommonParentNode.cpp
  
  Index: CommonParentNode.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/dom/CommonParentNode.cpp,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- CommonParentNode.cpp	2000/06/22 22:20:12	1.1
  +++ CommonParentNode.cpp	2000/07/13 00:08:39	1.2
  @@ -55,7 +55,7 @@
    */
   
   /*
  - * $Id: CommonParentNode.cpp,v 1.1 2000/06/22 22:20:12 aruna1 Exp $
  + * $Id: CommonParentNode.cpp,v 1.2 2000/07/13 00:08:39 aruna1 Exp $
    */
   
   
  @@ -253,6 +253,8 @@
           newInternal->previousSibling=prev;
           if (refInternal == firstChild) {
               firstChild = newInternal;
  +            if (refInternal != null)
  +                 refInternal->firstChild(false);
               newInternal->firstChild(true);
           } else {
               prev->nextSibling = newInternal;
  @@ -265,7 +267,6 @@
               firstChild->previousSibling = newInternal;
           } else {
               refInternal->previousSibling = newInternal;
  -            refInternal->firstChild(true);
           }
       }
       changed();