[Libreoffice-commits] .: sc/source
Markus Mohrhard
mmohrhard at kemper.freedesktop.org
Thu Aug 25 12:26:47 PDT 2011
sc/source/core/data/cell.cxx | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
New commits:
commit f78a6ae8020ae8de3881ce16ba787a5578e9f0e4
Author: Markus Mohrhard <markus.mohrhard at googlemail.com>
Date: Thu Aug 25 21:22:11 2011 +0200
see 792dee46f2b35a21167af182416803c0b80b517c
diff --git a/sc/source/core/data/cell.cxx b/sc/source/core/data/cell.cxx
index 05c2279..3246391 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();
More information about the Libreoffice-commits
mailing list