]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetTabular.cpp
Fix multicolumn output.
[lyx.git] / src / insets / InsetTabular.cpp
index 109bcd862cade0a9fb277cc02a21ee9c0c201eed..eaa2f94e19a797bbf626e0f21246c67cd0b29c0e 100644 (file)
@@ -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);