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
......@@ -264,8 +264,13 @@ void ScTable::DeleteRow( SCCOL nStartCol, SCCOL nEndCol, SCROW nStartRow, SCSIZE
if (nRow >= nStartRow)
{
aNotes.insert(nCol, nRow - nSize, pPostIt);
maNotes.ReleaseNote(nCol, nRow);
if(nRow > static_cast<SCROW>(nSize))
{
aNotes.insert(nCol, nRow - nSize, pPostIt);
maNotes.ReleaseNote(nCol, nRow);
}
else
maNotes.erase(nCol, nRow);
}
}
......@@ -483,8 +488,13 @@ void ScTable::DeleteCol( SCCOL nStartCol, SCROW nStartRow, SCROW nEndRow, SCSIZE
if (nCol >= nStartCol)
{
aNotes.insert(nCol - nSize, nRow, pPostIt);
maNotes.ReleaseNote(nCol, nRow);
if(nCol > static_cast<SCCOL>(nSize))
{
aNotes.insert(nCol - nSize, nRow, pPostIt);
maNotes.ReleaseNote(nCol, nRow);
}
else
maNotes.erase(nCol, nRow);
}
}
......
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