summaryrefslogtreecommitdiff
path: root/writerfilter/source/ooxml/OOXMLFastContextHandler.cxx
diff options
context:
space:
mode:
authorMark Hung <marklh9@gmail.com>2016-12-03 23:06:23 +0800
committerMichael Stahl <mstahl@redhat.com>2016-12-07 16:12:59 +0000
commit3caf89200c8fa7b38d6c340b666ca6cc8c2eb766 (patch)
treec05d0689c198e8ce77c4c28b43ff620a0319bde8 /writerfilter/source/ooxml/OOXMLFastContextHandler.cxx
parentc52745f8a3743841a4de030928c61d22063dd8ec (diff)
tdf#103651 check isForwardEvents() for symbols in comments
Every time a comment is referred, the whole comment stream is parsed but only the referred comment is extracted. But the symbol is always processed so it is added to all the comments. Change-Id: I3264de2d011ff188ef64f6500ae426cde0106c16 Reviewed-on: https://gerrit.libreoffice.org/31584 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'writerfilter/source/ooxml/OOXMLFastContextHandler.cxx')
-rw-r--r--writerfilter/source/ooxml/OOXMLFastContextHandler.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/writerfilter/source/ooxml/OOXMLFastContextHandler.cxx b/writerfilter/source/ooxml/OOXMLFastContextHandler.cxx
index 17ce14fbf9fe..0715e0ed828f 100644
--- a/writerfilter/source/ooxml/OOXMLFastContextHandler.cxx
+++ b/writerfilter/source/ooxml/OOXMLFastContextHandler.cxx
@@ -553,6 +553,12 @@ void OOXMLFastContextHandler::tab()
mpStream->utext(reinterpret_cast<const sal_uInt8*>(&uTab), 1);
}
+void OOXMLFastContextHandler::symbol()
+{
+ if (isForwardEvents())
+ sendPropertiesWithId(NS_ooxml::LN_EG_RunInnerContent_sym);
+}
+
void OOXMLFastContextHandler::cr()
{
if (isForwardEvents())