commit c58b914c80d57c7d12ac4c244682e82adfbcdd9c
Author: Jean-Marc Lasgouttes <[email protected]>
Date:   Mon May 21 13:24:27 2018 +0200

    Reset dim width when computing MathRow metrics
    
    This was dropped by mistake in 7bcb78a77.
    
    Fixes bug #11152.
---
 src/mathed/MathRow.cpp |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/mathed/MathRow.cpp b/src/mathed/MathRow.cpp
index cc3e5a3..9163149 100644
--- a/src/mathed/MathRow.cpp
+++ b/src/mathed/MathRow.cpp
@@ -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;

Reply via email to