summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2011-08-25 21:22:11 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2011-08-25 21:22:11 +0200
commitf78a6ae8020ae8de3881ce16ba787a5578e9f0e4 (patch)
tree4334979bac408c74d0f21333e5b834d7c047bd5e
parentc305f3cd2cdea7a3908b6eeeaa374ca32aac6d41 (diff)
see 792dee46f2b35a21167af182416803c0b80b517c
-rw-r--r--sc/source/core/data/cell.cxx5
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();