xmloff/source/style/xmlnumfe.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 0a93f33a2ec5bdbda446d35dfbeca1b7b8a3b8cb
Author:     László Németh <nem...@numbertext.org>
AuthorDate: Mon Nov 7 12:26:41 2022 +0100
Commit:     László Németh <nem...@numbertext.org>
CommitDate: Mon Nov 7 13:53:48 2022 +0100

    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 <nem...@numbertext.org>
    Reviewed-by: László Németh <nem...@numbertext.org>

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 */

Reply via email to