]> git.lyx.org Git - lyx.git/commitdiff
Fix disappearing blue language underline.
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 20 Jul 2018 13:23:55 +0000 (15:23 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 10 Sep 2018 09:53:36 +0000 (11:53 +0200)
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.

(cherry picked from commit 8e9e05067014a7c5fad501a0f4e8ffbb56eed165)

src/RowPainter.cpp
status.23x

index 38bcefadadecced50836681c69169c6979502475..94516ba109fe5b41d5599fd1ba699a9f739149b9 100644 (file)
@@ -149,8 +149,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());
 }
index fbd2fcff4c53b696728ffe4514471f520cf10aa8..8f5741c420ba4df737bae3e3851d6074d22515fe 100644 (file)
@@ -98,6 +98,8 @@ What's new
 
 - Fix issues with dead key accents (bug 11183).
 
+- Fix disappearance of blue (language) line in some situations.
+
 
 
 * INTERNALS