summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2016-10-11 15:10:46 +0200
committerEike Rathke <erack@redhat.com>2016-10-11 15:24:05 +0200
commit351164ea2c70923e47d5f01f3934c73cfc5839a9 (patch)
tree71f51901999e948d4379027c2cd89b50ce1ca09f /sc
parente588aa4d347875eb4c52bd2b51c5c917f807ba6d (diff)
Resolves: tdf#101691 re-intern strings of external formula results
If the external cell referenced is a formula result of type string that string needs to be re-interned for the reference cache as well. Change-Id: Iea3c3d777dede2ad6ba0b084533af964da991ca6
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/docshell/externalrefmgr.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/ui/docshell/externalrefmgr.cxx b/sc/source/ui/docshell/externalrefmgr.cxx
index d3f2a4e0517f..39cc31f60f2c 100644
--- a/sc/source/ui/docshell/externalrefmgr.cxx
+++ b/sc/source/ui/docshell/externalrefmgr.cxx
@@ -1557,8 +1557,8 @@ static FormulaToken* convertToToken( ScDocument* pHostDoc, ScDocument* pSrcDoc,
}
else
{
- svl::SharedString aStr = pFCell->GetString();
- return new formula::FormulaStringToken(aStr);
+ svl::SharedString aSS = pHostDoc->GetSharedStringPool().intern( pFCell->GetString().getString());
+ return new formula::FormulaStringToken(aSS);
}
}
default: