+ for (col_type c = 0; c < ncols; ++c) {
+ // inherit line settings
+ idx_type const i = cellIndex(row + 1, c);
+ idx_type const j = cellIndex(row, c);
+ setLeftLine(i, isPartOfMultiColumn(row, c) ? false : leftLine(j));
+ if (cell_info[row][c].multicolumn == CELL_NORMAL || c == ncols - 1
+ || (c + 1 < ncols
+ && cell_info[row][c].multicolumn != CELL_NORMAL
+ && cell_info[row][c + 1].multicolumn == CELL_NORMAL))
+ setRightLine(i, rightLine(j));
+ else
+ setRightLine(i, false);
+ // mark track changes
+ if (bp.trackChanges)
+ cellInfo(i).inset->setChange(Change(Change::INSERTED));
+ }