summaryrefslogtreecommitdiff
path: root/sc/source
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-10-13 08:41:35 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-10-15 04:52:41 +0200
commit262079b2df4fb42ab00b93e8d87b364cb38ce7ae (patch)
tree766f37a25d26a28331aa8714f05c090528c2a7c3 /sc/source
parent00e815bd0452f6c68e3ff7a2d4050b6ad410a098 (diff)
fix the problem in the right method
Change-Id: Ifedd563ad430cff957e148d81367139455d71686
Diffstat (limited to 'sc/source')
-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 d016c6b41764..3da04e308f03 100644
--- a/sc/source/core/data/table2.cxx
+++ b/sc/source/core/data/table2.cxx
@@ -377,7 +377,7 @@ void ScTable::InsertCol( SCCOL nStartCol, SCROW nStartRow, SCROW nEndRow, SCSIZE
ScPostIt* pPostIt = itr->second;
++itr;
- if (nCol - nStartCol >= nStartCol)
+ if (nCol >= nStartCol)
{
aNotes.insert(nCol + nSize, nRow, pPostIt);
maNotes.ReleaseNote(nCol, nRow);
@@ -488,7 +488,7 @@ void ScTable::DeleteCol( SCCOL nStartCol, SCROW nStartRow, SCROW nEndRow, SCSIZE
if (nCol >= nStartCol)
{
- if(nCol > static_cast<SCCOL>(nSize))
+ if(nCol - nStartCol > static_cast<SCCOL>(nSize))
{
aNotes.insert(nCol - nSize, nRow, pPostIt);
maNotes.ReleaseNote(nCol, nRow);