summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-09-21 13:37:31 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-09-21 14:08:22 +0200
commit1e3919f040ade5d0f7f9fa854b3ed23366080c0c (patch)
treedc32a6d5d3de567252b3f4d5828261c979da0e28 /sc
parent79f94fee9ea3c223ddd4035916a0fb4f1a123fb3 (diff)
fix problem in ScRangeList::UpdateReference when deleting one row/col
Change-Id: I588565f65be5c9de54b9f038cf297fda4022fd9b
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/tool/rangelst.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/core/tool/rangelst.cxx b/sc/source/core/tool/rangelst.cxx
index 7a874e8617f4..393d0f087001 100644
--- a/sc/source/core/tool/rangelst.cxx
+++ b/sc/source/core/tool/rangelst.cxx
@@ -424,11 +424,11 @@ bool ScRangeList::UpdateReference(
{
if(nDx < 0)
{
- DeleteArea(nCol1+nDx, nRow1, nTab1, nCol1-1, nRow1, nTab2);
+ DeleteArea(nCol1+nDx, nRow1, nTab1, nCol1-1, nRow2, nTab2);
}
if(nDy < 0)
{
- DeleteArea(nCol1, nRow1+nDy, nTab1, nCol1, nRow1-1, nTab2);
+ DeleteArea(nCol1, nRow1+nDy, nTab1, nCol2, nRow1-1, nTab2);
}
SAL_WARN_IF(nDx < 0 && nDy < 0, "sc", "nDx and nDy are negative, check why");
}