cid#705996 unintended sign extension
Change-Id: Ia2bb742b5392e139953d92e1a3c38a8e3bc4d5f7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/86622 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
This commit is contained in:
parent
1583d309dd
commit
350d25da37
1 changed files with 1 additions and 1 deletions
|
@ -3659,7 +3659,7 @@ Range ImpEditEngine::GetInvalidYOffsets( ParaPortion* pPortion )
|
|||
&& nPropLineSpace && ( nPropLineSpace < 100 ) )
|
||||
{
|
||||
const EditLine& rL = pPortion->GetLines()[nFirstInvalid];
|
||||
long n = rL.GetTxtHeight() * ( 100 - nPropLineSpace );
|
||||
auto n = rL.GetTxtHeight() * ( 100 - nPropLineSpace );
|
||||
n /= 100;
|
||||
aRange.Min() -= n;
|
||||
aRange.Max() += n;
|
||||
|
|
Loading…
Reference in a new issue