Reset dim width when computing MathRow metrics

This was dropped by mistake in 7bcb78a77.

Fixes bug #11152.
This commit is contained in:
Jean-Marc Lasgouttes 2018-05-21 13:24:27 +02:00
parent bbf287a3c6
commit c58b914c80

View File

@ -236,6 +236,7 @@ int MathRow::after(int i) const
void MathRow::metrics(MetricsInfo & mi, Dimension & dim) void MathRow::metrics(MetricsInfo & mi, Dimension & dim)
{ {
dim.wid = 0;
// In order to compute the dimension of macros and their // In order to compute the dimension of macros and their
// arguments, it is necessary to keep track of them. // arguments, it is necessary to keep track of them.
vector<pair<InsetMath const *, Dimension>> dim_insets; vector<pair<InsetMath const *, Dimension>> dim_insets;