summaryrefslogtreecommitdiff
path: root/dbaccess
diff options
context:
space:
mode:
authorMichael Stahl <Michael.Stahl@cib.de>2020-04-28 13:56:58 +0200
committerMichael Stahl <michael.stahl@cib.de>2020-05-15 17:50:56 +0200
commit1a60d388b566754d5fe6cee12adf7252a3206167 (patch)
tree815d43b9c2d2f91b30a5729923f8b76cacf78173 /dbaccess
parent23a1b7bad5147ee48d7f920085426d8846559af7 (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 ac21fa4c809f..29d63ae81353 100644
--- a/dbaccess/source/core/dataaccess/databasedocument.cxx
+++ b/dbaccess/source/core/dataaccess/databasedocument.cxx
@@ -1662,8 +1662,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())
{