]>
Commit | Line | Data |
---|---|---|
5beb1686 JB |
1 | --- src/dom-api/impl/XPathDocumentImpl.cpp.orig 2017-09-03 19:24:35 UTC |
2 | +++ src/dom-api/impl/XPathDocumentImpl.cpp | |
3 | @@ -62,7 +62,11 @@ DOMNode *XPathDocumentImpl::insertBefore | |
4 | if (thisNodeImpl->isReadOnly()) | |
5 | throw DOMException(DOMException::NO_MODIFICATION_ALLOWED_ERR, 0, getMemoryManager()); | |
6 | ||
7 | +#if _XERCES_VERSION >= 30200 | |
8 | + DOMNode* thisNode = fParent.fContainingNode; | |
9 | +#else | |
10 | DOMNode* thisNode = castToNode(&fParent); | |
11 | +#endif | |
12 | if (newChild->getOwnerDocument() != thisNode) | |
13 | throw DOMException(DOMException::WRONG_DOCUMENT_ERR, 0, getMemoryManager()); | |
14 |