From: sgunderson@bigfoot.com <> Date: Wed, 21 Sep 2011 21:46:11 +0000 (+0200) Subject: Fix a potential bug in the C++0x cleaning. X-Git-Url: https://git.sesse.net/?p=xml-template;a=commitdiff_plain;h=83a41af3311ec494205205ec093ffff0aad56fd0 Fix a potential bug in the C++0x cleaning. --- diff --git a/c++0x/xml-template.cpp b/c++0x/xml-template.cpp index f28b3dc..c2b62cd 100644 --- a/c++0x/xml-template.cpp +++ b/c++0x/xml-template.cpp @@ -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; } }