use the correct db range for the copy, fdo#46712
This commit is contained in:
parent
1b93146d44
commit
f7fbeac4cb
1 changed files with 1 additions and 1 deletions
|
@ -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());
|
||||
|
|
Loading…
Reference in a new issue