From 8e9e05067014a7c5fad501a0f4e8ffbb56eed165 Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Fri, 20 Jul 2018 15:23:55 +0200 Subject: [PATCH] Fix disappearing blue language underline. Make sure that the blue language underline is not below the bottom of the row. Otherwise, it can disappear when the next row is painted. --- src/RowPainter.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/RowPainter.cpp b/src/RowPainter.cpp index a929340478..16b144ebd4 100644 --- a/src/RowPainter.cpp +++ b/src/RowPainter.cpp @@ -157,8 +157,8 @@ void RowPainter::paintForeignMark(Row::Element const & e) const return; int const desc = e.inset ? e.dim.descent() : 0; - int const y = yo_ + pi_.base.solidLineOffset() - + desc + pi_.base.solidLineThickness() / 2; + int const y = yo_ + min(3 * pi_.base.solidLineOffset() / 2 + desc, + row_.descent() - 1); pi_.pain.line(int(x_), y, int(x_ + e.full_width()), y, Color_language, Painter::line_solid, pi_.base.solidLineThickness()); } -- 2.39.5