]> git.lyx.org Git - lyx.git/commit
Fix display of a math hull inset in a tight inset
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 14 Jul 2023 00:13:18 +0000 (02:13 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 22 Mar 2024 14:40:40 +0000 (15:40 +0100)
commit4dfebbe9da27ff500b8245858322f1baeb00100b
treeacc173b423fcc1c9a920a38200a261e4ea39f7a7
parent6d62d8009f3c41874cf84aa6577aae3293ebb5e6
Fix display of a math hull inset in a tight inset

This is a kind of hack. This allows InsetMathHull to state that it
needs some elbow room beyond its width, in order to fit the numbering
and/or the left margin (with left alignment), which are outside of the
inset itself.

To this end, InsetMathHull::metrics() sets a value in
MetricsInfo::extrawidth and this value is added later to the width of
the row that contains the inset (when this row is tight or shorter
than the max allowed width).

Fixes bug #12320.
src/MetricsInfo.cpp
src/MetricsInfo.h
src/TextMetrics.cpp
src/mathed/InsetMathHull.cpp