mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-26 03:11:59 +00:00
Amend b30f8d3c
Fix assertion. Thanks Scott for the bisect and the trace.
This commit is contained in:
parent
cf45810e43
commit
34b6b474ea
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user