mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 05:16:21 +00:00
Omit floating point exception
This commit is contained in:
parent
28f17333ff
commit
58804aa399
@ -1107,7 +1107,7 @@ bool Tabular::updateColumnWidths(MetricsInfo & mi)
|
||||
// (minus the fixed widths) to the variable-width columns
|
||||
int vcolwidth = -1;
|
||||
int restcols = ncols() - max_pwidth.size();
|
||||
if (restwidth > 0)
|
||||
if ((restwidth > 0) && (restcols != 0))
|
||||
vcolwidth = restwidth / restcols;
|
||||
|
||||
// Now consider that some variable width columns exceed the vcolwidth
|
||||
|
Loading…
Reference in New Issue
Block a user