summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@collabora.com>2014-05-06 12:22:53 -0400
committerKohei Yoshida <kohei.yoshida@collabora.com>2014-05-06 12:24:20 -0400
commit67563fd55b230eb68fef705ff645af7dab73af73 (patch)
tree0fb5b78869c6acdc2fd6b90b99de005996293e33 /sc
parent5971a8f1cee915e762784e970f0eb10f2baf0f71 (diff)
fdo#77944: Put updated formula cells into undo document.
Change-Id: Ib9d6a73d485878bfe6c2a1875936025eb4d0a30a
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/data/formulacell.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/core/data/formulacell.cxx b/sc/source/core/data/formulacell.cxx
index d7cef22772b6..a233fe5c3529 100644
--- a/sc/source/core/data/formulacell.cxx
+++ b/sc/source/core/data/formulacell.cxx
@@ -2871,7 +2871,7 @@ bool ScFormulaCell::UpdateReferenceOnMove(
(bValChanged && bHasRelName ) || bOnRefMove)
bNeedDirty = true;
- if (pUndoDoc && (bValChanged || bOnRefMove))
+ if (pUndoDoc && (bValChanged || bRefModified || bOnRefMove))
setOldCodeToUndo(pUndoDoc, aUndoPos, pOldCode.get(), eTempGrammar, cMatrixFlag);
bValChanged = false;