summaryrefslogtreecommitdiff
path: root/writerfilter/source
diff options
context:
space:
mode:
authorJustin Luth <justin_luth@sil.org>2018-03-26 19:07:18 +0300
committerMiklos Vajna <vmiklos@collabora.co.uk>2018-03-29 14:39:48 +0200
commit3138abfb052a4241cfca4b8d430c139cca50a85c (patch)
treec9b55ae06c28c3fc5e097a9e224eca6e4f85acdd /writerfilter/source
parent6c57ae39d783ae92a43dc2e113ea6e2dfb52af22 (diff)
tdf#112886 ooxmlimport: skip useless footnote placeholder
Inserting the 0x02 placeholder as the first entry in the line interferes with the aesthetic tab code. lcl_text has code to ignore that placeholder, but lcl_utext doesn't. Ignoring at lcl_utext has the same affect as not processing it at all. Only .docx adds 0x02, so it should be fairly safe to avoid the 0x02 completely. Nothing was detected missing by skipping the placeholder. All of the code was inherited from OOo. Change-Id: Ie8840e5946fec89f270fef5523c88ee5051ca8ef Reviewed-on: https://gerrit.libreoffice.org/51912 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Justin Luth <justin_luth@sil.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Diffstat (limited to 'writerfilter/source')
-rw-r--r--writerfilter/source/ooxml/OOXMLFastContextHandler.cxx3
1 files changed, 0 insertions, 3 deletions
diff --git a/writerfilter/source/ooxml/OOXMLFastContextHandler.cxx b/writerfilter/source/ooxml/OOXMLFastContextHandler.cxx
index 80f4a2e420f3..e88c3cf7898a 100644
--- a/writerfilter/source/ooxml/OOXMLFastContextHandler.cxx
+++ b/writerfilter/source/ooxml/OOXMLFastContextHandler.cxx
@@ -32,7 +32,6 @@
#include "Handler.hxx"
static const sal_Unicode uCR = 0xd;
-static const sal_Unicode uFtnEdnRef = 0x2;
static const sal_Unicode uFtnEdnSep = 0x3;
static const sal_Unicode uTab = 0x9;
static const sal_Unicode uPgNum = 0x0;
@@ -497,8 +496,6 @@ void OOXMLFastContextHandler::lockField()
void OOXMLFastContextHandler::ftnednref()
{
- if (isForwardEvents())
- mpStream->utext(reinterpret_cast<const sal_uInt8*>(&uFtnEdnRef), 1);
}
void OOXMLFastContextHandler::ftnednsep()