diff --git a/src/insets/InsetTabular.cpp b/src/insets/InsetTabular.cpp index d1490f2df6..07eef6a3d9 100644 --- a/src/insets/InsetTabular.cpp +++ b/src/insets/InsetTabular.cpp @@ -1745,7 +1745,7 @@ Tabular::idx_type Tabular::setLTCaption(row_type row, bool what) { idx_type i = getFirstCellInRow(row); if (what) { - setMultiColumn(i, column_info.size()); + setMultiColumn(i, numberOfCellsInRow(i)); setTopLine(i, false); setBottomLine(i, false); setLeftLine(i, false);