diff options
Diffstat (limited to 'src/xmlfixups.cpp')
-rw-r--r-- | src/xmlfixups.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/xmlfixups.cpp b/src/xmlfixups.cpp index d9bdb0a..eb6fcb7 100644 --- a/src/xmlfixups.cpp +++ b/src/xmlfixups.cpp @@ -503,10 +503,8 @@ void XmlFixups::runPassTwo(const DOM::Document& doc) continue; // Current element no longer valid } - continue; - // Change id attribute on fonts to name - /* else */ if(haveFonts && name == kElFont) + if(haveFonts && name == kElFont) { if(el.hasAttribute(kAtId)) { @@ -779,7 +777,6 @@ void XmlFixups::fixBlock(const DOM::Document& doc, DOM::Element& block) while(block.hasChildNodes()) el.appendChild(block.removeChild(block.getFirstChild())); - // parent.replaceChild(el, block); - parent.appendChild(el); + parent.replaceChild(el, block); } } |