need to set the row/col relative to the start row/col
Change-Id: Ic423924dc12cc8aef1a45d494c6a623ddc45cff0
This commit is contained in:
parent
2ec03fc221
commit
9ffba6a8da
1 changed files with 2 additions and 2 deletions
|
@ -264,7 +264,7 @@ void ScTable::DeleteRow( SCCOL nStartCol, SCCOL nEndCol, SCROW nStartRow, SCSIZE
|
|||
|
||||
if (nRow >= nStartRow)
|
||||
{
|
||||
if(nRow > static_cast<SCROW>(nSize))
|
||||
if(nRow - nStartRow > static_cast<SCROW>(nSize))
|
||||
{
|
||||
aNotes.insert(nCol, nRow - nSize, pPostIt);
|
||||
maNotes.ReleaseNote(nCol, nRow);
|
||||
|
@ -377,7 +377,7 @@ void ScTable::InsertCol( SCCOL nStartCol, SCROW nStartRow, SCROW nEndRow, SCSIZE
|
|||
ScPostIt* pPostIt = itr->second;
|
||||
++itr;
|
||||
|
||||
if (nCol >= nStartCol)
|
||||
if (nCol - nStartCol >= nStartCol)
|
||||
{
|
||||
aNotes.insert(nCol + nSize, nRow, pPostIt);
|
||||
maNotes.ReleaseNote(nCol, nRow);
|
||||
|
|
Loading…
Reference in a new issue