From 6e519e7727f2d7f32a6f501fb4546bfab4c7f3b1 Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Sun, 11 Jan 2015 17:13:36 +0100 Subject: [PATCH] Fix two warnings about conversion from double to int. --- src/RowPainter.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/RowPainter.cpp b/src/RowPainter.cpp index 83ff825796..4c9118d916 100644 --- a/src/RowPainter.cpp +++ b/src/RowPainter.cpp @@ -442,16 +442,16 @@ int RowPainter::paintAppendixStart(int y) void RowPainter::paintTooLargeMarks(bool const left, bool const right) { if (left) - pi_.pain.line(dotted_line_thickness_, yo_ - row_.ascent(), - dotted_line_thickness_, yo_ + row_.descent(), - Color_scroll, - Painter::line_onoffdash, dotted_line_thickness_); + pi_.pain.line(int(dotted_line_thickness_), yo_ - row_.ascent(), + int(dotted_line_thickness_), yo_ + row_.descent(), + Color_scroll, + Painter::line_onoffdash, dotted_line_thickness_); if (right) { - int const wwidth = pi_.base.bv->workWidth() - dotted_line_thickness_; + int const wwidth = pi_.base.bv->workWidth() - int(dotted_line_thickness_); pi_.pain.line(wwidth, yo_ - row_.ascent(), - wwidth, yo_ + row_.descent(), - Color_scroll, - Painter::line_onoffdash, dotted_line_thickness_); + wwidth, yo_ + row_.descent(), + Color_scroll, + Painter::line_onoffdash, dotted_line_thickness_); } } -- 2.39.2