From e3d3a7c373657dcc39aaefab9fedce9f2d12cb63 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Thu, 5 Apr 2018 08:30:59 +0100 Subject: coverity#1433782 Unintended sign extension MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I804d2282094ab98d0295e57f35704fab78266b7f Reviewed-on: https://gerrit.libreoffice.org/52440 Tested-by: Jenkins Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- svx/source/dialog/paraprev.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'svx') 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 ); } -- cgit