Reset dim width when computing MathRow metrics

This was dropped by mistake in 7bcb78a77.

Fixes bug #11152.

(cherry picked from commit c58b914c80)
This commit is contained in:
Jean-Marc Lasgouttes 2018-05-21 13:24:27 +02:00
parent 87b44bcc1f
commit 1c8a53458a

View 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;