summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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: