summaryrefslogtreecommitdiff
path: root/editeng
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-02-12 13:43:46 +0200
committerNoel Grandin <noel@peralex.com>2014-02-12 15:10:48 +0200
commit025a77f794c87b602921bc583f1133268980b761 (patch)
treea06967344db7c2ae9989d9cfa1a2325ae2c3583a /editeng
parent639f35e22f5b61920fdd2662b230467fad39c123 (diff)
cid#705996 unintended sign extension
Change-Id: I07f357b069bd8ae31049f049163c0e20e7361f79
Diffstat (limited to 'editeng')
-rw-r--r--editeng/source/editeng/impedit2.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/editeng/source/editeng/impedit2.cxx b/editeng/source/editeng/impedit2.cxx
index eab034bcaa99..854c6edff3f0 100644
--- a/editeng/source/editeng/impedit2.cxx
+++ b/editeng/source/editeng/impedit2.cxx
@@ -3601,7 +3601,7 @@ Range ImpEditEngine::GetInvalidYOffsets( ParaPortion* pPortion )
( rLSItem.GetPropLineSpace() < 100 ) )
{
const EditLine* pL = pPortion->GetLines()[nFirstInvalid];
- long n = pL->GetTxtHeight() * ( 100 - rLSItem.GetPropLineSpace() );
+ long n = pL->GetTxtHeight() * ( 100L - rLSItem.GetPropLineSpace() );
n /= 100;
aRange.Min() -= n;
aRange.Max() += n;