diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-04-05 08:30:59 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-04-07 17:49:38 +0200 |
commit | e3d3a7c373657dcc39aaefab9fedce9f2d12cb63 (patch) | |
tree | 0ae909c1c76d328704af78dbd29570bcb74c58f9 /svx | |
parent | 2f25c7160c6f4f03cae3eea335218d14e7dfcbef (diff) |
coverity#1433782 Unintended sign extension
Change-Id: I804d2282094ab98d0295e57f35704fab78266b7f
Reviewed-on: https://gerrit.libreoffice.org/52440
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.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/svx/source/dialog/paraprev.cxx b/svx/source/dialog/paraprev.cxx index 66661c0bc3f1..418ed7ca8f70 100644 --- a/svx/source/dialog/paraprev.cxx +++ b/svx/source/dialog/paraprev.cxx @@ -85,7 +85,7 @@ void SvxParaPrevWindow::DrawParagraph(vcl::RenderContext& rRenderContext) if (i == 3) { rRenderContext.SetFillColor(COL_GRAY); - long nTop = nUpper * aLineSiz.Height() / aSize.Height(); + auto nTop = nUpper * aLineSiz.Height() / aSize.Height(); aPnt.AdjustY(nTop * 2 ); } |