From bbb2d8c660b515c98624a41a39ffe94d3a7ecc00 Mon Sep 17 00:00:00 2001 From: Kohei Yoshida Date: Fri, 9 Aug 2013 16:41:22 -0400 Subject: If the formula cell is grouped, update reference only on the top cell. Change-Id: I5e2e9db621a61deba39a46962e0ca877235d7c90 --- sc/source/core/data/formulacell.cxx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sc/source/core/data/formulacell.cxx') 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: -- cgit v1.2.1