summaryrefslogtreecommitdiff
path: root/sc/source
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@collabora.com>2018-10-12 14:12:13 +0200
committerLuboš Luňák <l.lunak@collabora.com>2018-11-13 13:19:03 +0100
commitf9026deba0581759146205237eb739f37463ba47 (patch)
tree4bba8e74aa22667f643fdaaf8dad98485549accf /sc/source
parent3460e91ac853964015215ec75be7cf63361ca0e9 (diff)
don't access deleted cells
This copy&pasted code that got fixed in 2926c9e40e17, so fix it as well. Change-Id: I0a038b57a428640dae8cdf17f33a2eab50b0187c Reviewed-on: https://gerrit.libreoffice.org/63177 Tested-by: Jenkins Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
Diffstat (limited to 'sc/source')
-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 23d518279896..4965ea3f0e3f 100644
--- a/sc/source/core/data/formulacell.cxx
+++ b/sc/source/core/data/formulacell.cxx
@@ -4327,6 +4327,8 @@ struct ScDependantsCalculator
case svSingleRef:
{
ScSingleRefData aRef = *p->GetSingleRef(); // =Sheet1!A1
+ if( aRef.IsDeleted())
+ return false;
ScAddress aRefPos = aRef.toAbs(mrPos);
if (!mrDoc.TableExists(aRefPos.Tab()))
@@ -4361,6 +4363,8 @@ struct ScDependantsCalculator
case svDoubleRef:
{
ScComplexRefData aRef = *p->GetDoubleRef();
+ if( aRef.IsDeleted())
+ return false;
ScRange aAbs = aRef.toAbs(mrPos);
// Multiple sheet