From 7fcc942eecd22ac6527bf33c370d228e43530b19 Mon Sep 17 00:00:00 2001 From: Michael Schmitt Date: Fri, 24 Nov 2006 22:18:41 +0000 Subject: [PATCH] * src/rowpainter.C: fix compiler warnings; remove obsolete using statement git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16032 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/rowpainter.C | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/rowpainter.C b/src/rowpainter.C index 1c2f53bb23..4290ffbf84 100644 --- a/src/rowpainter.C +++ b/src/rowpainter.C @@ -48,7 +48,6 @@ using frontend::FontMetrics; using std::endl; using std::max; -using std::min; using std::string; @@ -644,9 +643,9 @@ void RowPainter::paintLast() int const length = fm.maxAscent() / 2; LColor::color col = par_.isInserted(par_.size()) ? LColor::newtext : LColor::strikeout; - pain_.line(x_ + 1, yo_ + 2, x_ + 1, yo_ + 2 - length, col, + pain_.line(int(x_) + 1, yo_ + 2, int(x_) + 1, yo_ + 2 - length, col, Painter::line_solid, Painter::line_thick); - pain_.line(x_ + 1 - length, yo_ + 2, x_ + 1, yo_ + 2, col, + pain_.line(int(x_) + 1 - length, yo_ + 2, int(x_) + 1, yo_ + 2, col, Painter::line_solid, Painter::line_thick); } -- 2.39.2