Improve metrics for \limits in display mode

This commit is contained in:
Jean-Marc Lasgouttes 2020-07-17 18:48:39 +02:00
parent 269f847580
commit 8d54457dbf

View File

@ -282,9 +282,9 @@ void InsetMathScript::metrics(MetricsInfo & mi, Dimension & dim) const
cell(0).metrics(mi, dim0); cell(0).metrics(mi, dim0);
Changer dummy = mi.base.changeScript(); Changer dummy = mi.base.changeScript();
if (nargs() > 1) if (nargs() > 1)
cell(1).metrics(mi, dim1); cell(1).metrics(mi, dim1, !hasLimits());
if (nargs() > 2) if (nargs() > 2)
cell(2).metrics(mi, dim2); cell(2).metrics(mi, dim2, !hasLimits());
dim.wid = 0; dim.wid = 0;
BufferView & bv = *mi.base.bv; BufferView & bv = *mi.base.bv;