diff --git a/src/insets/InsetTabular.cpp b/src/insets/InsetTabular.cpp index 109bcd862c..eaa2f94e19 100644 --- a/src/insets/InsetTabular.cpp +++ b/src/insets/InsetTabular.cpp @@ -2672,7 +2672,7 @@ docstring Tabular::xhtmlRow(XHTMLStream & xs, row_type row, attr << "'"; if (isMultiColumn(cell)) - attr << " colspan='" << j + columnSpan(cell) - 1<< "'"; + attr << " colspan='" << columnSpan(cell) << "'"; xs << StartTag("td", attr.str()); ret += cellInset(cell)->xhtml(xs, runparams);