mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Avoid blinking change tracking cur for math inset.
Since there is a margin above and below the inset, there is no problem for putting it higher. Fixes bug #11684.
This commit is contained in:
parent
c3bdeefbec
commit
bf7f4d716c
@ -697,9 +697,12 @@ void InsetMathHull::draw(PainterInfo & pi, int x, int y) const
|
||||
drawMarkers(pi, x, y);
|
||||
|
||||
// drawing change line
|
||||
if (canPaintChange(*bv))
|
||||
pi.change_.paintCue(pi, x + 1, y + 1 - dim.asc,
|
||||
x + dim.wid, y + dim.des);
|
||||
if (canPaintChange(*bv)) {
|
||||
// like in metrics()
|
||||
int const display_margin = display() ? pi.base.inPixels(Length(12, Length::PT)) : 0;
|
||||
pi.change_.paintCue(pi, x + 1, y + 1 - dim.asc + display_margin,
|
||||
x + dim.wid, y + dim.des - display_margin);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user