summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-03-24 05:19:09 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-03-24 05:28:10 +0100
commit70478b0ae41aee6113c4e1e930912a804bd8489c (patch)
treeab996c37c05db41870a404158927ec6b772e917e /sc
parent2c3943f43d29bf9173a5c85710a4d2d06b6885ba (diff)
let us move this out of the condition
restores the old behavior Change-Id: I096934b87ddf646587ccb230986e61f5da22de68
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/data/cell2.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/core/data/cell2.cxx b/sc/source/core/data/cell2.cxx
index b4a78de9477c..923277261f11 100644
--- a/sc/source/core/data/cell2.cxx
+++ b/sc/source/core/data/cell2.cxx
@@ -860,10 +860,10 @@ bool ScFormulaCell::UpdateReference(UpdateRefMode eUpdateRefMode,
aUndoPos = *pUndoCellPos;
ScAddress aOldPos( aPos );
// bool bPosChanged = false; // if this cell was moved
- bool bIsInsert = false;
+ bool bIsInsert = (eUpdateRefMode == URM_INSDEL &&
+ nDx >= 0 && nDy >= 0 && nDz >= 0);
if (eUpdateRefMode == URM_INSDEL && r.In( aPos ))
{
- bIsInsert = (nDx >= 0 && nDy >= 0 && nDz >= 0);
aPos.Move(nDx, nDy, nDz);
bCellStateChanged = aPos != aOldPos;
}