Kaydet (Commit) aa7c1844 authored tarafından Wang Lei's avatar Wang Lei

#i118760# split the first table cell vertically, then undo&redo, the Presentation app will crash

üst 95d2a62c
......@@ -299,7 +299,11 @@ void TableModel::UndoRemoveColumns( sal_Int32 nIndex, ColumnVector& aCols, CellV
sal_Int32 nRows = getRowCountImpl();
for( sal_Int32 nRow = 0; nRow < nRows; ++nRow )
maRows[nRow]->insertColumns( nIndex, nCount, &aIter );
{
CellVector::iterator aIter2 = aIter + nRow * nCount;
DBG_ASSERT(aIter2 < aCells.end(), "sdr::table::TableModel::UndoRemoveColumns(), invalid iterator!");
maRows[nRow]->insertColumns( nIndex, nCount, &aIter2 );
}
updateColumns();
setModified(sal_True);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment