summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@collabora.com>2014-05-06 12:22:53 -0400
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2014-05-06 22:09:39 +0000
commitf7f1816938e252dcbd342d30c9189b5344c4960b (patch)
treed75e3dee55a8b84520bd98733015badee07196b1
parent325f51e94639f1a9e0d0c60159bfcf3070409640 (diff)
fdo#77944: Put updated formula cells into undo document.
Change-Id: Ib9d6a73d485878bfe6c2a1875936025eb4d0a30a (cherry picked from commit 67563fd55b230eb68fef705ff645af7dab73af73) Reviewed-on: https://gerrit.libreoffice.org/9260 Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
-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 830273014f9d..9eccadb76a25 100644
--- a/sc/source/core/data/formulacell.cxx
+++ b/sc/source/core/data/formulacell.cxx
@@ -2882,7 +2882,7 @@ bool ScFormulaCell::UpdateReferenceOnMove(
(bValChanged && bHasRelName && (bHasRelName || bInDeleteUndo || bRefSizeChanged)) || bOnRefMove)
bNeedDirty = true;
- if (pUndoDoc && (bValChanged || bOnRefMove))
+ if (pUndoDoc && (bValChanged || bRefModified || bOnRefMove))
setOldCodeToUndo(pUndoDoc, aUndoPos, pOldCode.get(), eTempGrammar, cMatrixFlag);
bValChanged = false;