editeng/source/misc/svxacorr.cxx |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 4c7686b7e1f4d012c00892f1cac1ae8a3298da5a
Author:     László Németh <[email protected]>
AuthorDate: Wed May 15 01:46:09 2024 +0200
Commit:     László Németh <[email protected]>
CommitDate: Wed May 15 10:32:41 2024 +0200

    tdf#156792 sw Catalan AutoCorrect: no superscript ordinal indicator
    
    According to the orthography, disable superscript for the Catalan
    ordinal indicators (only used for -a): 20a, 20è, 20ns, 20es.
    
    Change-Id: I2a3cd17b51a29300e9cfcacdcf0cb123d225248a
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167652
    Tested-by: Jenkins
    Reviewed-by: László Németh <[email protected]>

diff --git a/editeng/source/misc/svxacorr.cxx b/editeng/source/misc/svxacorr.cxx
index 1597e523a766..4cc64f90a766 100644
--- a/editeng/source/misc/svxacorr.cxx
+++ b/editeng/source/misc/svxacorr.cxx
@@ -474,6 +474,8 @@ bool SvxAutoCorrect::FnChgOrdinalNumber(
     // In some languages ordinal suffixes should never be
     // changed to superscript. Let's break for those languages.
     if (!eLang.anyOf(
+         LANGUAGE_CATALAN,              // tdf#156792
+         LANGUAGE_CATALAN_VALENCIAN,
          LANGUAGE_SWEDISH,
          LANGUAGE_SWEDISH_FINLAND))
     {

Reply via email to