summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2018-02-13 18:32:15 +0100
committerEike Rathke <erack@redhat.com>2018-02-13 18:46:09 +0100
commit60dcdcb82edff93f682586f930b9516c0010f777 (patch)
tree00956ff2f907372e959225e1110b1d403ccf7262 /sc
parentbcd62f2050336951ad56892d6e0a42f63c59a674 (diff)
Use ScSetStringParam::mbCheckLinkFormula in simple ScImportExport::Text2Doc()
Change-Id: I59f5ebd1056c7c0caa89ba2754e6feaa34cc1a43
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/docshell/impex.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/sc/source/ui/docshell/impex.cxx b/sc/source/ui/docshell/impex.cxx
index 088f6d977041..146c097626e1 100644
--- a/sc/source/ui/docshell/impex.cxx
+++ b/sc/source/ui/docshell/impex.cxx
@@ -848,6 +848,9 @@ bool ScImportExport::Text2Doc( SvStream& rStrm )
pSeps[0] = cSep;
pSeps[1] = 0;
+ ScSetStringParam aSetStringParam;
+ aSetStringParam.mbCheckLinkFormula = true;
+
SCCOL nStartCol = aRange.aStart.Col();
SCROW nStartRow = aRange.aStart.Row();
SCCOL nEndCol = aRange.aEnd.Col();
@@ -897,7 +900,7 @@ bool ScImportExport::Text2Doc( SvStream& rStrm )
if (nRow>nEndRow) nEndRow = nRow;
}
if( bData && nCol <= nEndCol && nRow <= nEndRow )
- pDoc->SetString( nCol, nRow, aRange.aStart.Tab(), aCell );
+ pDoc->SetString( nCol, nRow, aRange.aStart.Tab(), aCell, &aSetStringParam );
}
else // too many columns/rows
{