sw/source/core/txtnode/fntcache.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit d7bdc8cd42b69bd752f0225ab11e3b196bd46618
Author:     Caolán McNamara <[email protected]>
AuthorDate: Tue Dec 21 12:12:30 2021 +0000
Commit:     Caolán McNamara <[email protected]>
CommitDate: Tue Dec 21 21:16:19 2021 +0100

    split the two reasons aKernArray values are changed into two blocks
    
    no logic change intended
    
    Change-Id: I4305ecc865ff18f29278e78afc6e995ad095e803
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/127246
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <[email protected]>

diff --git a/sw/source/core/txtnode/fntcache.cxx 
b/sw/source/core/txtnode/fntcache.cxx
index ec871eacb73a..6090bb94a5fc 100644
--- a/sw/source/core/txtnode/fntcache.cxx
+++ b/sw/source/core/txtnode/fntcache.cxx
@@ -1706,6 +1706,7 @@ void SwFntObj::DrawText( SwDrawTextInfo &rInf )
                         nScrPos = ( nMul * nScrPos + aKernArray[i] ) / nDiv;
                     }
                 }
+                aKernArray[i-1] = nScrPos - nScr;
 
                 // Apply SpaceSum
                 if (cChPrev == CH_BLANK)
@@ -1723,7 +1724,7 @@ void SwFntObj::DrawText( SwDrawTextInfo &rInf )
                 }
 
                 cChPrev = nCh;
-                aKernArray[i-1] = nScrPos - nScr + nKernSum + nSpaceSum;
+                aKernArray[i-1] += nKernSum + nSpaceSum;
                 // In word line mode and for Arabic, we disabled the half 
space trick. If a portion
                 // ends with a blank, the full nSpaceAdd value has been added 
to the character in
                 // front of the blank. This leads to painting artifacts, 
therefore we remove the

Reply via email to