commit 58804aa399933a12a1c5ee6ad1aed344289d2dc3
Author: Kornel Benko <kor...@lyx.org>
Date:   Fri May 31 12:55:12 2019 +0200

    Omit floating point exception
---
 src/insets/InsetTabular.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/insets/InsetTabular.cpp b/src/insets/InsetTabular.cpp
index c702074..dec2961 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

Reply via email to