From 3eff65e78a3a90b07c7a01ff26736fd25996e476 Mon Sep 17 00:00:00 2001 From: Oliver Specht Date: Tue, 6 Oct 2015 14:51:16 +0200 Subject: tdf#90810: skip all elements outside of the requested footnote the footnote stream is parsed completely at each footnote insertion all elements outside of the requested footnote need to be skipped Change-Id: I8909145411003ce6f924e712c2da00a4dc03a974 Reviewed-on: https://gerrit.libreoffice.org/19192 Tested-by: Jenkins Reviewed-by: Oliver Specht --- writerfilter/source/ooxml/OOXMLFastContextHandler.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'writerfilter/source/ooxml') diff --git a/writerfilter/source/ooxml/OOXMLFastContextHandler.cxx b/writerfilter/source/ooxml/OOXMLFastContextHandler.cxx index 898dacdce600..43feb4137733 100644 --- a/writerfilter/source/ooxml/OOXMLFastContextHandler.cxx +++ b/writerfilter/source/ooxml/OOXMLFastContextHandler.cxx @@ -189,8 +189,9 @@ throw (uno::RuntimeException, xml::sax::SAXException, std::exception) m_bDiscardChildren = aState.m_bDiscardChildren; m_bTookChoice = aState.m_bTookChoice; } - else if (!m_bDiscardChildren) + else if (!m_bDiscardChildren && isForwardEvents()) lcl_endFastElement(Element); + } void OOXMLFastContextHandler::lcl_startFastElement -- cgit