]> git.lyx.org Git - features.git/commit
Rewrite the code that sets caret height in mathed
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Tue, 16 Apr 2019 13:58:51 +0000 (15:58 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 18 Jun 2020 13:48:25 +0000 (15:48 +0200)
commitd57c5d2b283fa67e818c5f82d9ea791400a0b9ae
tree41e39e74b900637649252b7aed63657ab8f9157d
parent73e102de3cf2dca8d98bda7480426667fcedc0f2
Rewrite the code that sets caret height in mathed

Instead of remembering the caret ascent and descent for the cell that contains the cursor, the new code remembers caret dimension for each MathRow object. This makes the code much less fragile (ans slightly smaller).

This fixes caret size issues when the Update::SinglePar flag is active.

Fixes bug #11541.
src/BufferView.cpp
src/BufferView.h
src/mathed/MathData.cpp
src/mathed/MathData.h
src/mathed/MathRow.cpp
src/mathed/MathRow.h