summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorMichael Stahl <Michael.Stahl@cib.de>2020-05-18 17:50:39 +0200
committerMichael Stahl <michael.stahl@cib.de>2020-05-19 17:03:09 +0200
commitd6ba23a7c0fbd4b59b8011012bbcaa002c5c84ca (patch)
tree97d94f664707bedb3b0d4651081a2fd069d3f3ed /xmloff
parentd705a860936a58e40a2894a12d02be585a06e1c1 (diff)
tdf#106780 xmloff: ODF export: only write invalid text:style-name...
... in case of ODF 1.2 Extended (compatibility mode), which is intended for workarounds for old OOo/LO versions. Change-Id: Ib0411c09d795383a481be8b4661dc71b02b0181b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94442 Tested-by: Jenkins Reviewed-by: Michael Stahl <michael.stahl@cib.de>
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/table/XMLTableExport.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmloff/source/table/XMLTableExport.cxx b/xmloff/source/table/XMLTableExport.cxx
index 32cdf3a69f28..b2ffc284cfd2 100644
--- a/xmloff/source/table/XMLTableExport.cxx
+++ b/xmloff/source/table/XMLTableExport.cxx
@@ -613,7 +613,7 @@ void XMLTableExport::exportTableTemplates()
else
{
// checks if any of the extended version of ODF are set
- if ((eVersion & SvtSaveOptions::ODFSVER_EXTENDED) != 0)
+ if (eVersion == SvtSaveOptions::ODFSVER_012_EXT_COMPAT)
{
// tdf#106780 historically this wrong attribute was used
// for the name; write it if extended because LO < 5.3 can