diff options
author | Serge Krot <Serge.Krot@cib.de> | 2018-03-27 12:25:40 +0200 |
---|---|---|
committer | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2018-03-28 08:56:10 +0200 |
commit | 1c1160967acf49cffae8921f3ab8361821bbaaaf (patch) | |
tree | 0bcc1f841d81625f86649c907ca344d729a45c87 /xmloff/source/text | |
parent | 1a43481a1d8913a2c5fcb0c2e4363deaf439caff (diff) |
tdf#115005: New option to prevent adding fallback images
A new option AddReplacementImages was added to prevent
addition of fallback images that could increase the file
size of the package in several times.
Added unit test.
Change-Id: I50eebba51072d3c93bfe6bed59e9f007568810c0
Reviewed-on: https://gerrit.libreoffice.org/51939
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Diffstat (limited to 'xmloff/source/text')
-rw-r--r-- | xmloff/source/text/txtparae.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/xmloff/source/text/txtparae.cxx b/xmloff/source/text/txtparae.cxx index c23ddb2bfa98..a9c5c35d56f2 100644 --- a/xmloff/source/text/txtparae.cxx +++ b/xmloff/source/text/txtparae.cxx @@ -117,6 +117,7 @@ #include <algorithm> #include <iterator> #include <comphelper/graphicmimetype.hxx> +#include <officecfg/Office/Common.hxx> using namespace ::std; using namespace ::com::sun::star; @@ -3153,6 +3154,8 @@ void XMLTextParagraphExport::_exportTextGraphic( } } + const bool bAddReplacementImages = officecfg::Office::Common::Save::Graphic::AddReplacementImages::get(); + if (bAddReplacementImages) { // replacement graphic for backwards compatibility, but // only for SVG and metafiles currently |