diff options
author | Eike Rathke <erack@redhat.com> | 2014-03-20 11:23:48 +0100 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2014-03-20 13:03:33 +0100 |
commit | 6daff4ed350b6b2493f36290a00892a9584e786f (patch) | |
tree | 7d15ae8042af212ba73f9682c7dafc4b82631bba /sc | |
parent | 9cee6a45632623d3d7e5a574128940f96d8c926b (diff) |
range list might be nil, who knows
Change-Id: Iee5554f1b51db0f6dc22ccbed743ae431bb895f6
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/core/data/tabprotection.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sc/source/core/data/tabprotection.cxx b/sc/source/core/data/tabprotection.cxx index 10eef3c8c227..7accb279d7cf 100644 --- a/sc/source/core/data/tabprotection.cxx +++ b/sc/source/core/data/tabprotection.cxx @@ -374,7 +374,8 @@ bool ScTableProtectionImpl::updateReference( UpdateRefMode eMode, ScDocument* pD for (::std::vector<ScEnhancedProtection>::iterator it(maEnhancedProtection.begin()); it != maEnhancedProtection.end(); ++it) { - bChanged |= (*it).maRangeList->UpdateReference( eMode, pDoc, rWhere, nDx, nDy, nDz); + if ((*it).maRangeList.Is()) + bChanged |= (*it).maRangeList->UpdateReference( eMode, pDoc, rWhere, nDx, nDy, nDz); } return bChanged; } |