summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2016-10-11 15:10:46 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2016-10-13 05:20:33 +0000
commit8a0ec842b92857b6950c95e2c00ffa6b0ec12082 (patch)
tree3c411bffb936fea12b631a10ad707d79d5788b99
parente85bb2479f0566fd3a4f8e76fddbe3133f51965c (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 (cherry picked from commit 351164ea2c70923e47d5f01f3934c73cfc5839a9) Reviewed-on: https://gerrit.libreoffice.org/29694 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
-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 4ac4112032ef..dac47e581ad2 100644
--- a/sc/source/ui/docshell/externalrefmgr.cxx
+++ b/sc/source/ui/docshell/externalrefmgr.cxx
@@ -1558,8 +1558,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: