summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@gmail.com>2013-08-09 16:41:22 -0400
committerKohei Yoshida <kohei.yoshida@gmail.com>2013-08-12 19:46:29 -0400
commitbbb2d8c660b515c98624a41a39ffe94d3a7ecc00 (patch)
treee9e3f942fca78fc887e1882bca2c87e61e197dcd /sc
parenta592b81558c41e71c0f139d86489b163148ea8b7 (diff)
If the formula cell is grouped, update reference only on the top cell.
Change-Id: I5e2e9db621a61deba39a46962e0ca877235d7c90
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/data/formulacell.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/sc/source/core/data/formulacell.cxx b/sc/source/core/data/formulacell.cxx
index c87b04501a0f..06fb6dc9bae7 100644
--- a/sc/source/core/data/formulacell.cxx
+++ b/sc/source/core/data/formulacell.cxx
@@ -2598,6 +2598,10 @@ bool ScFormulaCell::UpdateReference(
if (pDocument->IsClipOrUndo())
return false;
+ if (mxGroup && mxGroup->mnStart != aPos.Row())
+ // Update only the top cell in case the cell is part of a formula group.
+ return false;
+
switch (rCxt.meMode)
{
case URM_INSDEL: