From 32ada80a9f47b095d7b0c4d16e3422f6ef7f2ac2 Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Fri, 21 Feb 2014 12:57:57 +0100 Subject: DOCX export: make sure a graphic is only written once Even if it's referenced multiple times, because of mc:AlternateContent. Change-Id: Ie4cb0ec088d12be5421bac43113c8ae4636028e0 --- sw/source/filter/ww8/docxattributeoutput.hxx | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sw/source/filter/ww8/docxattributeoutput.hxx') diff --git a/sw/source/filter/ww8/docxattributeoutput.hxx b/sw/source/filter/ww8/docxattributeoutput.hxx index e25606deb4c6..47ce782b8443 100644 --- a/sw/source/filter/ww8/docxattributeoutput.hxx +++ b/sw/source/filter/ww8/docxattributeoutput.hxx @@ -824,6 +824,9 @@ private: bool m_setFootnote; + /// RelId <-> Graphic* cache, so that in case of alternate content, the same graphic only gets written once. + std::map m_aRelIdCache; + public: DocxAttributeOutput( DocxExport &rExport, ::sax_fastparser::FSHelperPtr pSerializer, oox::drawingml::DrawingML* pDrawingML ); -- cgit