summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-04-05 08:36:36 +0100
committerCaolán McNamara <caolanm@redhat.com>2018-04-07 17:48:14 +0200
commite371cc6cef2d94d82481a258343975556f37fa6d (patch)
tree71613b1399e8d1be0b2fbc035dd146ddae993725 /svx
parentdefad92cdc44dcfef4092ae7324f241d35855e49 (diff)
coverity#1433788 Unintended sign extension
Change-Id: I3d907c567157009c2b5c79c3041f3ba841639281 Reviewed-on: https://gerrit.libreoffice.org/52442 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'svx')
-rw-r--r--svx/source/dialog/paraprev.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/svx/source/dialog/paraprev.cxx b/svx/source/dialog/paraprev.cxx
index 9f203542cae5..66661c0bc3f1 100644
--- a/svx/source/dialog/paraprev.cxx
+++ b/svx/source/dialog/paraprev.cxx
@@ -200,7 +200,7 @@ void SvxParaPrevWindow::DrawParagraph(vcl::RenderContext& rRenderContext)
if (5 == i)
{
- long nBottom = nLower * aLineSiz.Height() / aSize.Height();
+ auto nBottom = nLower * aLineSiz.Height() / aSize.Height();
aPnt.AdjustY(nBottom * 2 );
}