summaryrefslogtreecommitdiff
path: root/dbaccess
diff options
context:
space:
mode:
authorMichael Stahl <Michael.Stahl@cib.de>2020-04-28 13:56:58 +0200
committerJan Holesovsky <kendy@collabora.com>2021-01-07 16:32:53 +0100
commit3b20e43f78a72c13290d8e4202fa9f5034cf40a8 (patch)
tree88fa5f65aaea7599d8e6283342cb080cf20e2052 /dbaccess
parent3e0b32251cb43521c5d20f5d1af540919562d3e5 (diff)
comphelper,sfx2,dbaccess: add ODFVER_013_TEXT constant
This is used for Version of package in API. Change-Id: I23d162c4dfff2f56c541a7c6c2e21c87ed7d8213 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/93087 Tested-by: Jenkins Reviewed-by: Michael Stahl <michael.stahl@cib.de>
Diffstat (limited to 'dbaccess')
-rw-r--r--dbaccess/source/core/dataaccess/databasedocument.cxx8
1 files changed, 7 insertions, 1 deletions
diff --git a/dbaccess/source/core/dataaccess/databasedocument.cxx b/dbaccess/source/core/dataaccess/databasedocument.cxx
index 9d4050736774..a4df99774d38 100644
--- a/dbaccess/source/core/dataaccess/databasedocument.cxx
+++ b/dbaccess/source/core/dataaccess/databasedocument.cxx
@@ -1676,8 +1676,14 @@ void ODatabaseDocument::impl_writeStorage_throw( const Reference< XStorage >& _r
aSaveOpt.GetODFSaneDefaultVersion();
// older versions can not have this property set,
// it exists only starting from ODF1.2
- if (nDefVersion >= SvtSaveOptions::ODFSVER_012)
+ if (nDefVersion >= SvtSaveOptions::ODFSVER_013)
+ {
+ aVersion = ODFVER_013_TEXT;
+ }
+ else if (nDefVersion >= SvtSaveOptions::ODFSVER_012)
+ {
aVersion = ODFVER_012_TEXT;
+ }
if (!aVersion.isEmpty())
{