Kaydet (Commit) 1e3919f0 authored tarafından Markus Mohrhard's avatar Markus Mohrhard

fix problem in ScRangeList::UpdateReference when deleting one row/col

Change-Id: I588565f65be5c9de54b9f038cf297fda4022fd9b
üst 79f94fee
...@@ -424,11 +424,11 @@ bool ScRangeList::UpdateReference( ...@@ -424,11 +424,11 @@ bool ScRangeList::UpdateReference(
{ {
if(nDx < 0) if(nDx < 0)
{ {
DeleteArea(nCol1+nDx, nRow1, nTab1, nCol1-1, nRow1, nTab2); DeleteArea(nCol1+nDx, nRow1, nTab1, nCol1-1, nRow2, nTab2);
} }
if(nDy < 0) 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"); SAL_WARN_IF(nDx < 0 && nDy < 0, "sc", "nDx and nDy are negative, check why");
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment