[LyX/master] Improve metrics for \limits in display mode

Jean-Marc Lasgouttes lasgouttes at lyx.org
Fri Jul 17 20:21:20 UTC 2020


Le 17/07/2020 à 21:55, Jean-Marc Lasgouttes a écrit :
> commit 8d54457dbf6ab41083b5c769be22b8333f764037
> Author: Jean-Marc Lasgouttes <lasgouttes at lyx.org>
> Date:   Fri Jul 17 18:48:39 2020 +0200
> 
>      Improve metrics for \limits in display mode

This is purely cosmetic and candidate for branch.

Riki?

JMarc

> ---
>   src/mathed/InsetMathScript.cpp |    4 ++--
>   1 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/src/mathed/InsetMathScript.cpp b/src/mathed/InsetMathScript.cpp
> index bc19868..3e995fd 100644
> --- a/src/mathed/InsetMathScript.cpp
> +++ b/src/mathed/InsetMathScript.cpp
> @@ -282,9 +282,9 @@ void InsetMathScript::metrics(MetricsInfo & mi, Dimension & dim) const
>   	cell(0).metrics(mi, dim0);
>   	Changer dummy = mi.base.changeScript();
>   	if (nargs() > 1)
> -		cell(1).metrics(mi, dim1);
> +		cell(1).metrics(mi, dim1, !hasLimits());
>   	if (nargs() > 2)
> -		cell(2).metrics(mi, dim2);
> +		cell(2).metrics(mi, dim2, !hasLimits());
>   
>   	dim.wid = 0;
>   	BufferView & bv = *mi.base.bv;
> 



More information about the lyx-devel mailing list