c_info[i][j] = cell_info[i][j - 1];
}
// care about multicolumns
- if (c_info[i][column + 1].multicolumn==CELL_BEGIN_OF_MULTICOLUMN) {
+ if (c_info[i][column + 1].multicolumn==CELL_BEGIN_OF_MULTICOLUMN)
+ {
c_info[i][column + 1].multicolumn = CELL_PART_OF_MULTICOLUMN;
}
- if ((column + 1) == columns_ ||
- c_info[i][column + 2].multicolumn != CELL_PART_OF_MULTICOLUMN) {
+ if ((column + 2) >= columns_ ||
+ c_info[i][column + 2].multicolumn != CELL_PART_OF_MULTICOLUMN)
+ {
c_info[i][column + 1].multicolumn = LyXTabular::CELL_NORMAL;
}
}
#ifndef NO_COMPABILITY
// Here we need to insert the inset_ert_contents into the last
// cell of the tabular.
- owner_->bufferOwner()->insertErtContents(par, pos, font);
+ owner_->bufferOwner()->insertErtContents(par, pos);
#endif
break;
}