amassari 2004/03/24 07:13:35
Modified: c/src/xercesc/dom/impl DOMDocumentImpl.cpp
Log:
importNode was using castToNodeImpl on the source node, assuming it was derived from
DOMNodeImpl, but it could be a wrong assumption
Revision Changes Path
1.54 +2 -2 xml-xerces/c/src/xercesc/dom/impl/DOMDocumentImpl.cpp
Index: DOMDocumentImpl.cpp
===================================================================
RCS file: /home/cvs/xml-xerces/c/src/xercesc/dom/impl/DOMDocumentImpl.cpp,v
retrieving revision 1.53
retrieving revision 1.54
diff -u -r1.53 -r1.54
--- DOMDocumentImpl.cpp 2 Mar 2004 13:26:16 -0000 1.53
+++ DOMDocumentImpl.cpp 24 Mar 2004 15:13:35 -0000 1.54
@@ -1062,7 +1062,7 @@
newelement->setAttributeNodeNS(nattr);
// if the imported attribute is of ID type, register the
new node in fNodeIDMap
- if (castToNodeImpl(attr)->isIdAttr()) {
+ if (attr->isId()) {
castToNodeImpl(nattr)->isIdAttr(true);
if (!fNodeIDMap)
fNodeIDMap = new (this) DOMNodeIDMap(500, this);
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]