Kaydet (Commit) 2ec03fc2 authored tarafından Markus Mohrhard's avatar Markus Mohrhard

don't insert notes from deleted cells, fdo#55885

Change-Id: I036f0531dc2290c5eb480258bc70ec13b810e6bc
üst 979c4753
......@@ -263,10 +263,15 @@ void ScTable::DeleteRow( SCCOL nStartCol, SCCOL nEndCol, SCROW nStartRow, SCSIZE
++itr;
if (nRow >= nStartRow)
{
if(nRow > static_cast<SCROW>(nSize))
{
aNotes.insert(nCol, nRow - nSize, pPostIt);
maNotes.ReleaseNote(nCol, nRow);
}
else
maNotes.erase(nCol, nRow);
}
}
itr = aNotes.begin();
......@@ -482,10 +487,15 @@ void ScTable::DeleteCol( SCCOL nStartCol, SCROW nStartRow, SCROW nEndRow, SCSIZE
++itr;
if (nCol >= nStartCol)
{
if(nCol > static_cast<SCCOL>(nSize))
{
aNotes.insert(nCol - nSize, nRow, pPostIt);
maNotes.ReleaseNote(nCol, nRow);
}
else
maNotes.erase(nCol, nRow);
}
}
itr = aNotes.begin();
......
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