summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorStef Walter <stef@memberwebs.com>2005-07-16 21:59:15 +0000
committerStef Walter <stef@memberwebs.com>2005-07-16 21:59:15 +0000
commita9df5660f96000fbec056dff028d740174b9f306 (patch)
treee1c92e7809671a0f65155c8bfd026eb3e7e06801 /src
parent83fb37958a3ab420b79d6e236ec4424b2b538614 (diff)
Fix dumb mistake made in [243].
Diffstat (limited to 'src')
-rw-r--r--src/xmlfixups.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/xmlfixups.cpp b/src/xmlfixups.cpp
index 3989a0c..2bb52f8 100644
--- a/src/xmlfixups.cpp
+++ b/src/xmlfixups.cpp
@@ -631,7 +631,8 @@ void XmlFixups::runPassTwo(const DOM::Document& doc)
// all elements in the duplicates list don't need that.
while(prev.hasChildNodes())
- el.appendChild(prev.removeChild(prev.getFirstChild()));
+ el.insertBefore(prev.removeChild(prev.getLastChild()),
+ el.getFirstChild());
// Remove duplicate node
parent.removeChild(prev);