From a9df5660f96000fbec056dff028d740174b9f306 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Sat, 16 Jul 2005 21:59:15 +0000 Subject: Fix dumb mistake made in [243]. --- src/xmlfixups.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- cgit v1.2.3