diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-10-09 19:32:39 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2021-10-10 15:50:38 +0200 |
commit | 4dc362917597f0e3b890ef7d8d190749b20abce4 (patch) | |
tree | 8dbba31ea12ebdc018f9e56fe04bc87b89f33b25 | |
parent | 82bc337c979f6d74cb08d0332b44f26b155f9554 (diff) |
cid#1492337 Unintended sign extension
Change-Id: I6836e83ba17de646bfb661281b76c2b5e58b76c2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123323
Tested-by: Jenkins
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r-- | sw/source/core/text/itradj.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/core/text/itradj.cxx b/sw/source/core/text/itradj.cxx index 8c96cf56222d..35f88bb46326 100644 --- a/sw/source/core/text/itradj.cxx +++ b/sw/source/core/text/itradj.cxx @@ -509,7 +509,7 @@ SwTwips SwTextAdjuster::CalcKanaAdj( SwLineLayout* pCurrent ) { if ( pPos->InTextGrp() ) { - const sal_uInt16 nMinWidth = pPos->Width(); + const SwTwips nMinWidth = pPos->Width(); // get maximum portion width from info structure, calculated // during text formatting @@ -524,7 +524,7 @@ SwTwips SwTextAdjuster::CalcKanaAdj( SwLineLayout* pCurrent ) } else if( pPos->InGlueGrp() && pPos->InFixMargGrp() ) { - pPos->Width( o3tl::narrowing<sal_uInt16>(pPos->Width() - nDecompress) ); + pPos->Width(pPos->Width() - nDecompress); if ( pPos->InTabGrp() ) // set fix width to width |