diff options
author | László Németh <nemeth@numbertext.org> | 2022-11-07 12:26:41 +0100 |
---|---|---|
committer | László Németh <nemeth@numbertext.org> | 2022-11-07 13:53:48 +0100 |
commit | 0a93f33a2ec5bdbda446d35dfbeca1b7b8a3b8cb (patch) | |
tree | e4134f9d93732fca6a0a41d528604b0624be8eac /xmloff | |
parent | 24122c202149761121ffde6788d1b28b6f3ca8f1 (diff) |
xmloff: write transliteration-spellout only in extended ODF
Follow-up to commit 7c20c3c2a9fc85c66dad9d09908b257beeedd78d
"xmloff: ODF export: adapt all checks of ODFSVER_012 etc.".
Reported by Eike Rathke.
See also b7d53247eb2fab04f5f6d82d405f1ac0c73542b2
"tdf#115007 i18npool: add NatNum12 formats to locales" and
2a1d2d42af7f365330479f4032ddfdd9eeba7c1d
"tdf#115007 add NatNum12 number format list items, fix title case".
Change-Id: Idb25a37ffcad0a0fb05276b972561abf929cd81b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142373
Tested-by: László Németh <nemeth@numbertext.org>
Reviewed-by: László Németh <nemeth@numbertext.org>
Diffstat (limited to 'xmloff')
-rw-r--r-- | xmloff/source/style/xmlnumfe.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xmloff/source/style/xmlnumfe.cxx b/xmloff/source/style/xmlnumfe.cxx index abf03285f818..a2938b1d998d 100644 --- a/xmloff/source/style/xmlnumfe.cxx +++ b/xmloff/source/style/xmlnumfe.cxx @@ -1205,12 +1205,12 @@ void SvXMLNumFmtExport::ExportPart_Impl( const SvNumberformat& rFormat, sal_uInt const bool bWriteSpellout = aAttr.Format.isEmpty(); assert(bWriteSpellout); // mutually exclusive - // Export only for 1.2 with extensions or 1.3 and later. + // Export only for 1.2 and later with extensions SvtSaveOptions::ODFSaneDefaultVersion eVersion = rExport.getSaneDefaultVersion(); // Also ensure that duplicated transliteration-language and // transliteration-country attributes never escape into the wild with // releases. - if (eVersion > SvtSaveOptions::ODFSVER_012 && bWriteSpellout) + if ( (eVersion & SvtSaveOptions::ODFSVER_EXTENDED) && bWriteSpellout ) { /* FIXME-BCP47: ODF defines no transliteration-script or * transliteration-rfc-language-tag */ |