use the correct db range for the copy, fdo#46712

This commit is contained in:
Markus Mohrhard 2012-03-01 12:59:14 +01:00
parent 1b93146d44
commit f7fbeac4cb

View file

@ -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());