diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2013-03-24 05:19:09 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2013-03-24 05:28:10 +0100 |
commit | 70478b0ae41aee6113c4e1e930912a804bd8489c (patch) | |
tree | ab996c37c05db41870a404158927ec6b772e917e /sc | |
parent | 2c3943f43d29bf9173a5c85710a4d2d06b6885ba (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.cxx | 4 |
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; } |