]> git.lyx.org Git - features.git/commitdiff
Reset dim width when computing MathRow metrics
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 21 May 2018 11:24:27 +0000 (13:24 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 21 May 2018 11:26:48 +0000 (13:26 +0200)
This was dropped by mistake in 7bcb78a77.

Fixes bug #11152.

src/mathed/MathRow.cpp

index cc3e5a3dab988d298c5aa879affc6bf10c522b83..91631496949df892e6e9d3166a4a92858c5aee8d 100644 (file)
@@ -236,6 +236,7 @@ int MathRow::after(int i) const
 
 void MathRow::metrics(MetricsInfo & mi, Dimension & dim)
 {
+       dim.wid = 0;
        // In order to compute the dimension of macros and their
        // arguments, it is necessary to keep track of them.
        vector<pair<InsetMath const *, Dimension>> dim_insets;