summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/tool/sharedformula.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/core/tool/sharedformula.cxx b/sc/source/core/tool/sharedformula.cxx
index 844e0a7678cd..4236a9f07231 100644
--- a/sc/source/core/tool/sharedformula.cxx
+++ b/sc/source/core/tool/sharedformula.cxx
@@ -410,7 +410,7 @@ void SharedFormulaUtil::startListeningAsGroup( sc::StartListeningContext& rCxt,
#else
ScFormulaCell** pp = ppSharedTop;
- ScFormulaCell** ppEnd = ppSharedTop + (**ppSharedTop).GetSharedLength();
+ ScFormulaCell** ppEnd = ppSharedTop + rTopCell.GetSharedLength();
for (; pp != ppEnd; ++pp)
{
ScFormulaCell& rFC = **pp;