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
This commit is contained in:
Vincent van Ravesteijn 2009-02-10 00:02:39 +00:00
parent 20d5148dca
commit 0be0516d28

View File

@ -1745,7 +1745,7 @@ Tabular::idx_type Tabular::setLTCaption(row_type row, bool what)
{ {
idx_type i = getFirstCellInRow(row); idx_type i = getFirstCellInRow(row);
if (what) { if (what) {
setMultiColumn(i, column_info.size()); setMultiColumn(i, numberOfCellsInRow(i));
setTopLine(i, false); setTopLine(i, false);
setBottomLine(i, false); setBottomLine(i, false);
setLeftLine(i, false); setLeftLine(i, false);