]> git.lyx.org Git - features.git/commit
Set caret height correctly for cells inside math rows
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 24 May 2018 09:10:25 +0000 (11:10 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 24 May 2018 15:28:49 +0000 (17:28 +0200)
commit874ad18178ac387c407534fd18e33c116c753430
tree011579e6b584c5d7d95aeb77ab236a9f1c9ff835
parent1c8a53458a300322a0680b0d2a694b126d5c9f7f
Set caret height correctly for cells inside math rows

The code in 90cfe4ec3 only handled the cells which metrics are
computed directly, and missed those who were linearized inside a MathRow.

To fix this, we use the fact that all the positions in a math row have
the same height and make MathRow::metrics return a boolean indicating
whether it contains a caret for a given bufferview.

Fixes bug #11153.

(cherry picked from commit a3868e40a40853bf3500ec4b3fb1a152f846464c)
src/mathed/MathData.cpp
src/mathed/MathData.h
src/mathed/MathRow.cpp
src/mathed/MathRow.h