summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-03-01 12:59:14 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-03-01 12:59:14 +0100
commitf7fbeac4cbb764ccd153f9aea37a07e66e96b809 (patch)
tree75d05d6d8e2ca71ecc023c918485442c334fe894
parent1b93146d442bb8396126d6106f05a5bb0ee9fffa (diff)
use the correct db range for the copy, fdo#46712
-rw-r--r--sc/source/core/data/cell.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/core/data/cell.cxx b/sc/source/core/data/cell.cxx
index 37285e78d65a..bd616b1473b5 100644
--- a/sc/source/core/data/cell.cxx
+++ b/sc/source/core/data/cell.cxx
@@ -218,7 +218,7 @@ void adjustDBRange(ScToken* pToken, ScDocument& rNewDoc, const ScDocument* pOldD
ScDBData* pNewDBData = aNewNamedDBs.findByName(aDBName);
if (!pNewDBData)
{
- pNewDBData = new ScDBData(*pNewDBData);
+ pNewDBData = new ScDBData(*pDBData);
aNewNamedDBs.insert(pNewDBData);
}
pToken->SetIndex(pNewDBData->GetIndex());