From: Jean-Marc Lasgouttes Date: Mon, 21 May 2018 11:24:27 +0000 (+0200) Subject: Reset dim width when computing MathRow metrics X-Git-Tag: lyx-2.4.0dev-acb2ca7b~3409 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=c58b914c80d57c7d12ac4c244682e82adfbcdd9c;p=features.git Reset dim width when computing MathRow metrics This was dropped by mistake in 7bcb78a77. Fixes bug #11152. --- diff --git a/src/mathed/MathRow.cpp b/src/mathed/MathRow.cpp index cc3e5a3dab..9163149694 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> dim_insets;