]> git.lyx.org Git - lyx.git/commitdiff
Improve metrics for \limits in display mode
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 17 Jul 2020 16:48:39 +0000 (18:48 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Sat, 18 Jul 2020 20:18:25 +0000 (22:18 +0200)
(cherry picked from commit 8d54457dbf6ab41083b5c769be22b8333f764037)

src/mathed/InsetMathScript.cpp
status.23x

index 315637c2dadcf1edfebf1e3f3a55abdf276b48ac..c461c9ca748d14232a04ddc5e35fb641351e6bd6 100644 (file)
@@ -298,9 +298,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;
index 944a0391a24e355e009a40b11decd1318ddd74a8..1307003d96064887f887aa26c25316904ee2cb32 100644 (file)
@@ -76,6 +76,7 @@ What's new
 
 - Fix display bug when typing in a paragraph where row heights change (bug 11601).
 
+- Fix spacing of limits of sum-like operators in display style.
 
 * INTERNALS