summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-03-05 02:26:12 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-03-05 02:28:17 +0100
commitc0e58cdcac9c5138d2d6f84e4da97110eb397621 (patch)
treee328946c36d42d0b2dfaf029629de2d76b70df6c /sc
parentd3ebd8340f781b3e51bce6b8eeb2123ac026bedf (diff)
and two more errors of the same kind
It is alarming that the Notes unit test did not fail for any of these errors
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/data/table2.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/core/data/table2.cxx b/sc/source/core/data/table2.cxx
index 42f1b6e4c397..2b9d1412dccf 100644
--- a/sc/source/core/data/table2.cxx
+++ b/sc/source/core/data/table2.cxx
@@ -264,7 +264,7 @@ void ScTable::DeleteRow( SCCOL nStartCol, SCCOL nEndCol, SCROW nStartRow, SCSIZE
ScPostIt* pPostIt = itr->second;
++itr;
- if (nCol >= nStartRow)
+ if (nRow >= nStartRow)
{
aNotes.insert(nCol, nRow - nSize, pPostIt);
maNotes.ReleaseNote(nCol, nRow);
@@ -483,7 +483,7 @@ void ScTable::DeleteCol( SCCOL nStartCol, SCROW nStartRow, SCROW nEndRow, SCSIZE
ScPostIt* pPostIt = itr->second;
++itr;
- if (nCol >= nStartRow)
+ if (nCol >= nStartCol)
{
aNotes.insert(nCol - nSize, nRow, pPostIt);
maNotes.ReleaseNote(nCol, nRow);