summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-03-01 12:59:14 +0100
committerKohei Yoshida <kohei.yoshida@suse.com>2012-03-01 13:11:34 -0500
commit94d4301ac51589f0f5ae39039c0f1f7379677b3a (patch)
tree78c4522aef37dd38042bfa1a68b0878643b87b75
parent55b3c7430637d2b0005d7c0332e7221c69138a63 (diff)
use the correct db range for the copy, fdo#46712
Signed-off-by: Kohei Yoshida <kohei.yoshida@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());