vcl/source/gdi/impglyphitem.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 61702277dcef91c2b38428e1276f484351c8510b
Author:     Caolán McNamara <caolan.mcnam...@collabora.com>
AuthorDate: Tue Jul 9 17:25:39 2024 +0100
Commit:     Caolán McNamara <caolan.mcnam...@collabora.com>
CommitDate: Fri Aug 9 10:53:28 2024 +0200

    we can drop cached text check workaround
    
    the root problem was found as:
    
    commit e75a1eb21834fa872864df2cc5811c6463aceb78
    Date:   Tue Jun 11 11:29:44 2024 +0100
    
        more stale hyphenation data after skipping blanks
    
    commit f050103c3324d878b310f37429ea3580a8230905
    Date:   Fri Jun 7 20:14:15 2024 +0100
    
        stale hyphenation data after skipping blanks
    
    Change-Id: Ia92dcb779ef75d15dd47479458154ba04ff1ef52
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170255
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com>

diff --git a/vcl/source/gdi/impglyphitem.cxx b/vcl/source/gdi/impglyphitem.cxx
index 3ac42bef226a..946230a51762 100644
--- a/vcl/source/gdi/impglyphitem.cxx
+++ b/vcl/source/gdi/impglyphitem.cxx
@@ -384,7 +384,7 @@ const SalLayoutGlyphs* 
SalLayoutGlyphsCache::GetLayoutGlyphs(
             if (bEnableOptimization && mLastSubstringKey.has_value() && 
!bAbortOnFontSubstitute)
             {
                 sal_Int32 pos = nIndex;
-                if (mLastSubstringKey->len < pos && pos > 0 && text[pos - 1] 
== nbSpace)
+                if (mLastSubstringKey->len < pos && text[pos - 1] == nbSpace)
                     --pos; // Writer skips a non-breaking space, so skip that 
character too.
                 if ((mLastSubstringKey->len == pos || mLastSubstringKey->index 
== nIndex)
                     && mLastSubstringKey

Reply via email to