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:
Caolán McNamara 2020-01-11 19:37:54 +00:00
parent 1583d309dd
commit 350d25da37

View file

@ -3659,7 +3659,7 @@ Range ImpEditEngine::GetInvalidYOffsets( ParaPortion* pPortion )
&& nPropLineSpace && ( nPropLineSpace < 100 ) ) && nPropLineSpace && ( nPropLineSpace < 100 ) )
{ {
const EditLine& rL = pPortion->GetLines()[nFirstInvalid]; const EditLine& rL = pPortion->GetLines()[nFirstInvalid];
long n = rL.GetTxtHeight() * ( 100 - nPropLineSpace ); auto n = rL.GetTxtHeight() * ( 100 - nPropLineSpace );
n /= 100; n /= 100;
aRange.Min() -= n; aRange.Min() -= n;
aRange.Max() += n; aRange.Max() += n;