Commit a2b64238 authored by Jos van den Oever's avatar Jos van den Oever

Bug fix: only remove offending element, not all style properties.

parent e4c22f51
......@@ -152,11 +152,13 @@ class OdfFixer extends XMLFilterImpl {
@Override
public void endElement(@Nullable String uri, @Nullable String localName,
@Nullable String qName) throws SAXException {
final String family = familyStack.pop();
mute = mute && family == null;
if (!mute) {
super.endElement(uri, localName, qName);
}
familyStack.pop();
final String family = (familyStack.size() == 0) ? null : familyStack
.peek();
mute = mute && family == null;
}
@Override
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment