]> 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 12:47:08 +0000 (14:47 +0200)
commita3868e40a40853bf3500ec4b3fb1a152f846464c
treeec29c82e39321ad704ca2c48b0d185fe39862517
parent429edc0a59a0509445bb93cd7d60c3d9ff36bd6b
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.
src/mathed/MathData.cpp
src/mathed/MathData.h
src/mathed/MathRow.cpp
src/mathed/MathRow.h