sw/source/core/text/porlin.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit 7a1470fd97d52c5196a0800dd64f4c8899909c4b Author: László Németh <nem...@numbertext.org> AuthorDate: Fri Jan 5 08:00:19 2024 +0100 Commit: László Németh <nem...@numbertext.org> CommitDate: Mon Jan 8 01:37:35 2024 +0100 tdf#159034 sw smart justify: fix position of shading E.g. shading of soft hyphens didn't follow space shrinking. Follow-up to commit 20cbe88ce5610fd8ee302e5780a4c0821ddb3db4 "tdf#119908 tdf#158419 sw smart justify: fix cursor position". Change-Id: Icdce4736d9c76ff1fbe9dd140b9f1c091e605452 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/161654 Tested-by: Jenkins Reviewed-by: László Németh <nem...@numbertext.org> diff --git a/sw/source/core/text/porlin.cxx b/sw/source/core/text/porlin.cxx index 4f93c9d727ce..a420d64301ff 100644 --- a/sw/source/core/text/porlin.cxx +++ b/sw/source/core/text/porlin.cxx @@ -89,8 +89,8 @@ void SwLinePortion::PrePaint( const SwTextPaintInfo& rInf, const sal_uInt16 nHalfView = nViewWidth / 2; sal_uInt16 nLastWidth = pLast->Width() + pLast->ExtraBlankWidth(); - if ( pLast->InSpaceGrp() && rInf.GetSpaceAdd() ) - nLastWidth += pLast->CalcSpacing( rInf.GetSpaceAdd(), rInf ); + if ( pLast->InSpaceGrp() && rInf.GetSpaceAdd(/*bShrink=*/true) ) + nLastWidth += pLast->CalcSpacing( rInf.GetSpaceAdd(/*bShrink=*/true), rInf ); sal_uInt16 nPos; SwTextPaintInfo aInf( rInf );