[Libreoffice-commits] core.git: Branch 'libreoffice-4-2' - sc/source

Kohei Yoshida kohei.yoshida at collabora.com
Tue May 6 15:10:13 PDT 2014


 sc/source/core/data/formulacell.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit f7f1816938e252dcbd342d30c9189b5344c4960b
Author: Kohei Yoshida <kohei.yoshida at collabora.com>
Date:   Tue May 6 12:22:53 2014 -0400

    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 at googlemail.com>
    Reviewed-by: Markus Mohrhard <markus.mohrhard at googlemail.com>

diff --git a/sc/source/core/data/formulacell.cxx b/sc/source/core/data/formulacell.cxx
index 8302730..9eccadb 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;


More information about the Libreoffice-commits mailing list