From 0be0516d282879180e44f0c542566706f5eade84 Mon Sep 17 00:00:00 2001 From: Vincent van Ravesteijn Date: Tue, 10 Feb 2009 00:02:39 +0000 Subject: [PATCH] Fix bug 5753: http://bugzilla.lyx.org/show_bug.cgi?id=5753. Crash when setting caption on a row with a multicolumn. If there is already a multicolumn on the row, the number of cells is different from column_info.size(). git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28427 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/insets/InsetTabular.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);