]> 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, 26 Apr 2018 22:03:48 +0000 (00:03 +0200)
commit90cfe4ec3b4ff22ef798a63e98ca70d0d33a1656
tree69b50800a1ecde72709d7801c34a8210cf9f9a1e
parent2f1eb35b868aaa5adb83ff358c2468551e25685e
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.
src/BufferView.cpp
src/BufferView.h
src/mathed/MathData.cpp