]> git.lyx.org Git - lyx.git/commitdiff
Cell in delimiter inset should not be tight
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 24 May 2019 09:10:17 +0000 (11:10 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Sat, 25 May 2019 12:15:38 +0000 (14:15 +0200)
Fixes bug #11337.

(cherry picked from commit 4da19ef8330fc90e712308d63aa7ddc0abfaef7b)

src/mathed/InsetMathDelim.cpp
status.23x

index 809e8a0c13ef53160ee0ac28cbd0c51466af680b..70f91163dbf6d4873d87118efac9f7e0b9d17300 100644 (file)
@@ -93,7 +93,7 @@ void InsetMathDelim::metrics(MetricsInfo & mi, Dimension & dim) const
 {
        Changer dummy = mi.base.changeEnsureMath();
        Dimension dim0;
-       cell(0).metrics(mi, dim0);
+       cell(0).metrics(mi, dim0, false);
        Dimension t = theFontMetrics(mi.base.font).dimension('I');
        int h0 = (t.asc + t.des) / 2;
        int a0 = max(dim0.asc, t.asc)   - h0;
index 3d5481a77ff5032654cbea0a30bb34523e8fc3c6..82aeda5fc2de63cf345807c1024f42536e9a328f 100644 (file)
@@ -218,6 +218,8 @@ What's new
 
 - Handle some cases where underline across insets did not painted (bug 11402).
 
+- Fix minimal height of delimiters inset (bug 11337).
+
 
 * INTERNALS