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/27 19:06:24 UTC
cvs commit: xml-xerces/c/src/xercesc/idom IDDocumentImpl.cpp
tng 02/03/27 10:06:24
Modified: c/src/xercesc/idom IDDocumentImpl.cpp
Log:
[Bug 3010] DocumentImpl::importNode - Missed Readonly Flag Restore.
Revision Changes Path
1.5 +4 -4 xml-xerces/c/src/xercesc/idom/IDDocumentImpl.cpp
Index: IDDocumentImpl.cpp
===================================================================
RCS file: /home/cvs/xml-xerces/c/src/xercesc/idom/IDDocumentImpl.cpp,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- IDDocumentImpl.cpp 21 Mar 2002 15:35:41 -0000 1.4
+++ IDDocumentImpl.cpp 27 Mar 2002 18:06:24 -0000 1.5
@@ -55,7 +55,7 @@
*/
/*
- * $Id: IDDocumentImpl.cpp,v 1.4 2002/03/21 15:35:41 knoaman Exp $
+ * $Id: IDDocumentImpl.cpp,v 1.5 2002/03/27 18:06:24 tng Exp $
*/
#include <xercesc/util/XMLUniDefs.hpp>
@@ -567,7 +567,7 @@
newentity->setNotationName(srcentity->getNotationName());
// Kids carry additional value
newnode=newentity;
- castToNodeImpl(newentity)->isReadOnly(false);// allow deep import temporarily
+ castToNodeImpl(newentity)->setReadOnly(false, true);// allow deep import temporarily
}
break;
case IDOM_Node::PROCESSING_INSTRUCTION_NODE :
@@ -636,8 +636,8 @@
newnode->appendChild(importNode(srckid, true));
}
if (newnode->getNodeType() == IDOM_Node::ENTITY_REFERENCE_NODE
- || newnode->getNodeType() == IDOM_Node::ENTITY_REFERENCE_NODE)
- castToNodeImpl(newnode)->isReadOnly(true);
+ || newnode->getNodeType() == IDOM_Node::ENTITY_NODE)
+ castToNodeImpl(newnode)->setReadOnly(true, true);
return newnode;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-cvs-help@xml.apache.org