tdf#108758 : do not write to undo document when...
commit2caaf9bfe8d3f81517467daf36de0bd8ddd6b543
authorDennis Francis <dennis.francis@collabora.co.uk>
Thu, 13 Jul 2017 06:05:41 +0000 (13 11:35 +0530)
committerEike Rathke <erack@redhat.com>
Thu, 13 Jul 2017 15:24:58 +0000 (13 17:24 +0200)
tree3aaf50e4647dc023b98f580cf907c9b1b5b93f7a
parent3cf9b747141bc5f74dc64cefbc5d5b2611ab0a4d
tdf#108758 : do not write to undo document when...

...updating references during a block move, for formula cells
that are in the target range of the move operation.

The fix is for formula cells that are not grouped. For the
grouped case, it was already doing correctly.

Added two unit tests in ucalc_formula.cxx for grouped formula
and non-grouped formula cases.

Change-Id: I9f4d988f5e154f56670bd1c0cc366ee6704fb858
Reviewed-on: https://gerrit.libreoffice.org/39883
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Eike Rathke <erack@redhat.com>
sc/qa/unit/ucalc.hxx
sc/qa/unit/ucalc_formula.cxx
sc/source/core/data/formulacell.cxx