mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 05:25:26 +00:00
Prevent division by zero
Fixes crash reported at https://marc.info/?l=lyx-users&m=171842978728676
This commit is contained in:
parent
9fff7bdd5a
commit
0fc8ee5ace
@ -1330,7 +1330,7 @@ bool Tabular::updateColumnWidths(MetricsInfo & mi)
|
|||||||
changed = true;
|
changed = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (changed && restwidth > 0)
|
if (changed && restwidth > 0 && restcols != 0)
|
||||||
vcolwidth = restwidth / restcols;
|
vcolwidth = restwidth / restcols;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user