diff options
Diffstat (limited to 'src/xmlcomposer.cpp')
-rw-r--r-- | src/xmlcomposer.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/xmlcomposer.cpp b/src/xmlcomposer.cpp index 2f77545..6a731ff 100644 --- a/src/xmlcomposer.cpp +++ b/src/xmlcomposer.cpp @@ -1016,10 +1016,12 @@ ON_CONTROLWORD(ListOverrideTable) // the list node for overriding, using the 'listid' and 'ls' we gathered if(curList != NULL && lsId != -1) { - DOM::Element parent = (const DOM::Element&)curList.getParentNode(); + DOM::Node node = curList.getParentNode(); + DOM::Element parent = (DOM::Element&)node; if(parent != NULL) { - curList = (const DOM::Element&)curList.cloneNode(true); + node = curList.cloneNode(true); + curList = (DOM::Element&)node; if(curList != NULL) { parent.appendChild(curList); |