diff options
author | Michael Stahl <Michael.Stahl@cib.de> | 2020-05-20 15:06:44 +0200 |
---|---|---|
committer | Michael Stahl <michael.stahl@cib.de> | 2020-05-22 11:18:10 +0200 |
commit | d407019a69773156b0bb9ef0b4a775f67830949e (patch) | |
tree | 26f79c3a2473eeb186b3a8fa3b60ed4f4dd46c97 /svx | |
parent | d6c7fbe28aca170e804c4ebe7c1101bb3345c2c2 (diff) |
tdf#41995: sxx: ODF export: save SVG to ODF 1.2 as well
... and SVM into ODF 1.2 Extended (compatibility mode).
Change-Id: I2056ddac40570fdf69178349ff546cd313709b25
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94575
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@cib.de>
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/xml/xmlgrhlp.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/svx/source/xml/xmlgrhlp.cxx b/svx/source/xml/xmlgrhlp.cxx index 18595a164d8d..f9839c38b8ed 100644 --- a/svx/source/xml/xmlgrhlp.cxx +++ b/svx/source/xml/xmlgrhlp.cxx @@ -657,7 +657,8 @@ OUString SvXMLGraphicHelper::implSaveGraphic(css::uno::Reference<css::graphic::X // into an svm. slight catch22 here, since strict ODF // conformance _recommends_ svg - then again, most old // ODF consumers are believed to be OOo - if (SvtSaveOptions().GetODFSaneDefaultVersion() <= SvtSaveOptions::ODFSVER_012) + if (SvtSaveOptions().GetODFSaneDefaultVersion() < SvtSaveOptions::ODFSVER_012 + || SvtSaveOptions().GetODFSaneDefaultVersion() == SvtSaveOptions::ODFSVER_012_EXT_COMPAT) { bUseGfxLink = false; aExtension = ".svm"; |