editeng/source/editeng/impedit3.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit ee206e25852ba47824ceb910fe67a83825bb19b3
Author:     Caolán McNamara <caolan.mcnam...@collabora.com>
AuthorDate: Thu Jun 13 09:53:59 2024 +0100
Commit:     Caolán McNamara <caolan.mcnam...@collabora.com>
CommitDate: Thu Jun 13 15:01:12 2024 +0200

    put the font test before the script test
    
    no difference at all, just annoying to be different to its sibling
    checks
    
    Change-Id: I1713958f2d2d425d47c626f72a3aa0f3c687526e
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168772
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com>

diff --git a/editeng/source/editeng/impedit3.cxx 
b/editeng/source/editeng/impedit3.cxx
index f1d9a706c9e0..a644a3d523f6 100644
--- a/editeng/source/editeng/impedit3.cxx
+++ b/editeng/source/editeng/impedit3.cxx
@@ -3064,7 +3064,7 @@ void ImpEditEngine::SeekCursor( ContentNode* pNode, 
sal_Int32 nPos, SvxFont& rFo
         rFont.SetKerning( rFont.GetKerning() | FontKerning::Asian );
 
     // tdf#160401/#i78474# small caps do not exist in CTL fonts, so turn that 
off here where we know the script type
-    if (nScriptTypeI18N == i18n::ScriptType::COMPLEX && rFont.IsCapital())
+    if (rFont.IsCapital() && nScriptTypeI18N == i18n::ScriptType::COMPLEX)
         rFont.SetCaseMap(SvxCaseMap::NotMapped);
 
     if (maStatus.DoNotUseColors())

Reply via email to