]> git.lyx.org Git - lyx.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>
Tue, 22 May 2018 18:28:12 +0000 (20:28 +0200)
This was dropped by mistake in 7bcb78a77.

Fixes bug #11152.

(cherry picked from commit c58b914c80d57c7d12ac4c244682e82adfbcdd9c)

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;