From 262079b2df4fb42ab00b93e8d87b364cb38ce7ae Mon Sep 17 00:00:00 2001 From: Markus Mohrhard Date: Sat, 13 Oct 2012 08:41:35 +0200 Subject: fix the problem in the right method Change-Id: Ifedd563ad430cff957e148d81367139455d71686 --- sc/source/core/data/table2.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sc/source') 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(nSize)) + if(nCol - nStartCol > static_cast(nSize)) { aNotes.insert(nCol - nSize, nRow, pPostIt); maNotes.ReleaseNote(nCol, nRow); -- cgit