summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-12-21 12:12:30 +0000
committerCaolán McNamara <caolanm@redhat.com>2021-12-21 21:16:19 +0100
commitd7bdc8cd42b69bd752f0225ab11e3b196bd46618 (patch)
treeb0d1c641a28b353b224b2a7d772103c871f4ba9a /sw
parentd7cc9e829823239a6054de86408cf29bf8f2b4e4 (diff)
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 <caolanm@redhat.com>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/txtnode/fntcache.cxx3
1 files changed, 2 insertions, 1 deletions
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