From edb78c5459f6ea0e57a66952ae907c53a29e1c20 Mon Sep 17 00:00:00 2001 From: Kornel Benko Date: Fri, 31 May 2019 12:55:12 +0200 Subject: [PATCH] Omit floating point exception --- src/insets/InsetTabular.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5