summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorMichael Stahl <Michael.Stahl@cib.de>2020-05-20 15:06:44 +0200
committerJan Holesovsky <kendy@collabora.com>2021-01-07 16:32:56 +0100
commit90bc7782050fc75ec560d4d157edcd91cff58773 (patch)
treefda8935a055261e5d41a79f9bb80b09b4b7a5151 /svx
parent2e974d9de12da727cacc7ae7c7b6bcb1de46da99 (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.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/svx/source/xml/xmlgrhlp.cxx b/svx/source/xml/xmlgrhlp.cxx
index a4bdd60c97ac..cd9570bf6bc7 100644
--- a/svx/source/xml/xmlgrhlp.cxx
+++ b/svx/source/xml/xmlgrhlp.cxx
@@ -663,7 +663,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";