]> git.lyx.org Git - features.git/commit
Adapt caret height to context in mathed.
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 26 Apr 2018 22:03:48 +0000 (00:03 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 10 May 2018 10:53:30 +0000 (12:53 +0200)
commit4e981b034eba8b04534931e570a8f64b7396ad7d
treeec4cfa068240a38808247cb0069e3367ea637218
parent0cba074ecf0e25ede759ee1f817a7cfec06537d6
Adapt caret height to context in mathed.

Compute a height from current font and current cell vertical
dimensions in MathData::metrics(), because this is where current font
is known.

Introduce BufferView::setCaretAscentDescent to remember this value.

This mechanism is not used for text because Cursor::current_font is
restored by undo, and the caret height would not be changed then. But
in principle it is doable.

(cherry picked from commit 90cfe4ec3b4ff22ef798a63e98ca70d0d33a1656)
src/BufferView.cpp
src/BufferView.h
src/mathed/MathData.cpp
status.23x