diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2011-08-25 21:22:11 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2011-08-25 21:22:11 +0200 |
commit | f78a6ae8020ae8de3881ce16ba787a5578e9f0e4 (patch) | |
tree | 4334979bac408c74d0f21333e5b834d7c047bd5e | |
parent | c305f3cd2cdea7a3908b6eeeaa374ca32aac6d41 (diff) |
see 792dee46f2b35a21167af182416803c0b80b517c
-rw-r--r-- | sc/source/core/data/cell.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sc/source/core/data/cell.cxx b/sc/source/core/data/cell.cxx index 05c227946046..324639129c41 100644 --- a/sc/source/core/data/cell.cxx +++ b/sc/source/core/data/cell.cxx @@ -187,9 +187,10 @@ void adjustRangeName(ScToken* pToken, ScDocument& rNewDoc, const ScDocument* pOl if (!bInserted) { //if this happened we have a real problem - delete pRangeData; - pToken->SetIndex(-1); + pRangeData = NULL; + pToken->SetIndex(0); OSL_FAIL("inserting the range name should not fail"); + return; } } sal_Int32 nIndex = pRangeData->GetIndex(); |