]> git.lyx.org Git - features.git/commit
Better mechanism for setting cell height
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 19 Apr 2018 11:15:43 +0000 (13:15 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 10 May 2018 10:48:56 +0000 (12:48 +0200)
commit0cba074ecf0e25ede759ee1f817a7cfec06537d6
treef5de97ff1a9e55899c1320bb280d0f895c2786c8
parentf33d0789f6360e0b196e738d025360c2ef793b42
Better mechanism for setting cell height

When computing a cell metrics, it is now possible to specify whether it
is tight (at least as tall as 'x') or not (as tall as the max height of
the font).

Use this to make sure that grid insets have large enough cells. It
will probably appear that other cells needn't be tight. Currently, the
only cell which is known to be tight is the nucleus of the root inset.
Others should be examined one by one. It might be that the default of
MathData::metrics tight parameter should be `false'.

Fixes bug #11050.

(cherry picked from commit 7bcb78a77875ecae0f54063ff02ec90e1b78f8b6)
src/mathed/InsetMathGrid.cpp
src/mathed/InsetMathHull.cpp
src/mathed/InsetMathRoot.cpp
src/mathed/MathData.cpp
src/mathed/MathData.h
src/mathed/MathRow.cpp