Fix assertion. Thanks Scott for the bisect and the trace.
This commit is contained in:
Guillaume Munch 2016-11-21 12:09:48 +01:00
parent cf45810e43
commit 34b6b474ea

View File

@ -337,6 +337,8 @@ bool Row::setExtraWidth(int w)
int exp_amount = 0;
for (Row::Element const & e : elements_)
exp_amount += e.expansionAmount();
if (!exp_amount)
return false;
// extra length per expander per em
double extra_per_em = double(w) / exp_amount;
if (extra_per_em > MAX_SPACE_STRETCH)