]> git.lyx.org Git - features.git/commit
Better mechanism for setting cell 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>
Fri, 20 Apr 2018 07:59:45 +0000 (09:59 +0200)
commit7bcb78a77875ecae0f54063ff02ec90e1b78f8b6
treef4940db1e78a43945fea4543afd94fe9f3e31f53
parent4300feb8595c8542050adedf664cd4bfda7ede12
Better mechanism for setting cell 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.
src/mathed/InsetMathGrid.cpp
src/mathed/InsetMathHull.cpp
src/mathed/InsetMathRoot.cpp
src/mathed/MathData.cpp
src/mathed/MathData.h
src/mathed/MathRow.cpp