From: Kornel Benko Date: Fri, 31 May 2019 10:55:12 +0000 (+0200) Subject: Omit floating point exception X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=edb78c5459f6ea0e57a66952ae907c53a29e1c20;p=features.git Omit floating point exception --- diff --git a/src/insets/InsetTabular.cpp b/src/insets/InsetTabular.cpp index c702074191..dec2961dd1 100644 --- a/src/insets/InsetTabular.cpp +++ b/src/insets/InsetTabular.cpp @@ -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