summaryrefslogtreecommitdiff
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-03-01 11:59:14 (GMT)
committer Kohei Yoshida <kohei.yoshida@suse.com>2012-03-01 18:11:34 (GMT)
commit94d4301ac51589f0f5ae39039c0f1f7379677b3a (patch) (side-by-side diff)
tree78c4522aef37dd38042bfa1a68b0878643b87b75
parent55b3c7430637d2b0005d7c0332e7221c69138a63 (diff)
downloadcore-94d4301ac51589f0f5ae39039c0f1f7379677b3a.zip
core-94d4301ac51589f0f5ae39039c0f1f7379677b3a.tar.gz
use the correct db range for the copy, fdo#46712
Signed-off-by: Kohei Yoshida <kohei.yoshida@suse.com>
Diffstat (more/less context) (ignore whitespace changes)
-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 8ddc540..9b431fa 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());