From 1c8a53458a300322a0680b0d2a694b126d5c9f7f Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Mon, 21 May 2018 13:24:27 +0200 Subject: [PATCH] Reset dim width when computing MathRow metrics This was dropped by mistake in 7bcb78a77. Fixes bug #11152. (cherry picked from commit c58b914c80d57c7d12ac4c244682e82adfbcdd9c) --- src/mathed/MathRow.cpp | 1 + 1 file changed, 1 insertion(+) 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; -- 2.39.5