mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-23 16:52:02 +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. (cherry picked from commit bf7f4d716cf0ef148495d7ecd616a1aaea57a13d)
This commit is contained in:
parent
938c7831f7
commit
b7c098c3fa
@ -692,9 +692,12 @@ void InsetMathHull::draw(PainterInfo & pi, int x, int y) const
|
|||||||
}
|
}
|
||||||
|
|
||||||
// drawing change line
|
// drawing change line
|
||||||
if (canPaintChange(*bv))
|
if (canPaintChange(*bv)) {
|
||||||
pi.change_.paintCue(pi, x + 1, y + 1 - dim.asc,
|
// like in metrics()
|
||||||
x + dim.wid, y + dim.des);
|
int const display_margin = display() ? displayMargin() : 0;
|
||||||
|
pi.change_.paintCue(pi, x + 1, y + 1 - dim.asc + display_margin,
|
||||||
|
x + dim.wid, y + dim.des - display_margin);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -44,6 +44,8 @@ What's new
|
|||||||
|
|
||||||
* USER INTERFACE
|
* USER INTERFACE
|
||||||
|
|
||||||
|
- Fix display glith where the change tracking cue blinks with the cursor
|
||||||
|
(bug 11684).
|
||||||
|
|
||||||
* INTERNALS
|
* INTERNALS
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user