summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-03-01 12:59:14 +0100
committerMichael Meeks <michael.meeks@suse.com>2012-03-01 21:35:30 +0000
commit17322a611dd5add334f15539193dd0090e99ef01 (patch)
tree015e5fc883a452efca11c0f7ba3ca8fcce3e3828
parent1f6625282d773ab798714c562589e380f90b6252 (diff)
use the correct db range for the copy, fdo#46712
Signed-off-by: Kohei Yoshida <kohei.yoshida@suse.com> Signed-off-by: Michael Stahl <mstahl@redhat.com> Signed-off-by: Michael Meeks <michael.meeks@suse.com>
-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 8ddc5409aad0..9b431fa26a5e 100644
--- a/sc/source/core/data/cell.cxx
+++ b/sc/source/core/data/cell.cxx
@@ -226,7 +226,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());