mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-03 08:28:25 +00:00
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.
(cherry picked from commit 8e9e050670
)
This commit is contained in:
parent
d371a43865
commit
93f861903d
@ -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());
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user