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

Richard Kimberly Heck rikiheck at lyx.org
Sat Jul 18 14:57:41 UTC 2020


On 7/17/20 4:21 PM, Jean-Marc Lasgouttes wrote:
> 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?

OK.

Riki


>
>> ---
>>   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