From 8d54457dbf6ab41083b5c769be22b8333f764037 Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Fri, 17 Jul 2020 18:48:39 +0200 Subject: [PATCH] Improve metrics for \limits in display mode --- src/mathed/InsetMathScript.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mathed/InsetMathScript.cpp b/src/mathed/InsetMathScript.cpp index bc1986858d..3e995fd99c 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; -- 2.39.5