[Libreoffice-commits] core.git: Branch 'libreoffice-5-2-3' - sc/source

Eike Rathke erack at redhat.com
Tue Oct 25 10:24:27 UTC 2016


 sc/source/ui/docshell/externalrefmgr.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 24cf67d7df78c95011cb7f56c6673b45fffb7bda
Author: Eike Rathke <erack at redhat.com>
Date:   Tue Oct 11 15:10:46 2016 +0200

    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/29737
    Reviewed-by: Markus Mohrhard <markus.mohrhard at googlemail.com>
    Reviewed-by: Michael Stahl <mstahl at redhat.com>
    Reviewed-by: Stephan Bergmann <sbergman at redhat.com>
    Tested-by: Stephan Bergmann <sbergman at redhat.com>

diff --git a/sc/source/ui/docshell/externalrefmgr.cxx b/sc/source/ui/docshell/externalrefmgr.cxx
index 4ac4112..dac47e5 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:


More information about the Libreoffice-commits mailing list