]> git.lyx.org Git - features.git/commit
Make caret visible inside math macros arguments
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 3 Jun 2019 14:22:44 +0000 (16:22 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 18 Jun 2020 13:48:32 +0000 (15:48 +0200)
commitaf1b7b5fc2e809e86342b29644974be1c52f827c
tree1ff6af7ca64b9b9919bff3ecac0f307b59811fb7
parentaf3aa3bd6a2c4e463fd3a7372c81e5695673eef8
Make caret visible inside math macros arguments

The first step is to move the MathRow cache to BufferView, alongside
coordCache. This was on the todo list anyway, since it allows to let
go the math row information when the math equation is not on the
screen anymore. With the old scheme, it would always remain in memory.

Then, when computing caret size in MathData::metrics, make sure that
the mathrow of the elements that are linearized in the MathRow object
get their caret size information initialized too.

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