sc/source/core/data/table2.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit c0e58cdcac9c5138d2d6f84e4da97110eb397621 Author: Markus Mohrhard <markus.mohrh...@googlemail.com> Date: Mon Mar 5 02:26:12 2012 +0100 and two more errors of the same kind It is alarming that the Notes unit test did not fail for any of these errors diff --git a/sc/source/core/data/table2.cxx b/sc/source/core/data/table2.cxx index 42f1b6e..2b9d141 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); _______________________________________________ Libreoffice-commits mailing list Libreoffice-commits@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits