diff --git a/src/insets/InsetTabular.cpp b/src/insets/InsetTabular.cpp index 525509b4da..1b86dc316c 100644 --- a/src/insets/InsetTabular.cpp +++ b/src/insets/InsetTabular.cpp @@ -764,6 +764,9 @@ void Tabular::set_row_column_number_info() if (cell_info[row][column].multicolumn != Tabular::CELL_PART_OF_MULTICOLUMN) ++numberofcells; + BOOST_ASSERT(numberofcells != 0); + cell_info[row][column].cellno = + numberofcells - 1; } }