]> git.sesse.net Git - xml-template/commitdiff
Fix a potential bug in the C++0x cleaning.
authorsgunderson@bigfoot.com <>
Wed, 21 Sep 2011 21:46:11 +0000 (23:46 +0200)
committersgunderson@bigfoot.com <>
Wed, 21 Sep 2011 21:46:11 +0000 (23:46 +0200)
c++0x/xml-template.cpp

index f28b3dc93cd00e67fcefb0695576056330ae9a24..c2b62cd77ecbb6da8441e938809bb4042120c453 100644 (file)
@@ -16,6 +16,7 @@ void clean_node(xmlNode *node)
                xmlNode *frag = xmlNewDocFragment(node->doc);
                xmlReplaceNode(node, frag);
                frag->children = node->children;
+               frag->last = node->last;
        }
 }