summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Heinisch <andreas.heinisch@yahoo.de>2021-11-04 11:50:51 +0100
committerEike Rathke <erack@redhat.com>2021-11-08 23:04:54 +0100
commitb9e2c5d2a36fbd189c20448cadf4212edf02914d (patch)
tree17bc34c956f818beb3cfbcba764f53fcd119511f
parent140b90d30b30bddfda44b81e26284807807ab518 (diff)
tdf#142033 - Handle embedded newline set via SetDataArray
Change-Id: I798f9a2a2ce599ba8ca3ef1f5ae91801d8f1b138 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124681 Tested-by: Jenkins Reviewed-by: Eike Rathke <erack@redhat.com>
-rw-r--r--sc/source/ui/unoobj/cellsuno.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/sc/source/ui/unoobj/cellsuno.cxx b/sc/source/ui/unoobj/cellsuno.cxx
index d599e8ea38ba..b7f51d6e0ac7 100644
--- a/sc/source/ui/unoobj/cellsuno.cxx
+++ b/sc/source/ui/unoobj/cellsuno.cxx
@@ -1082,6 +1082,7 @@ static bool lcl_PutDataArray( ScDocShell& rDocShell, const ScRange& rRange,
const uno::Sequence< uno::Sequence<uno::Any> >& aData )
{
ScDocument& rDoc = rDocShell.GetDocument();
+ ScDocFunc& rDocFunc = rDocShell.GetDocFunc();
SCTAB nTab = rRange.aStart.Tab();
SCCOL nStartCol = rRange.aStart.Col();
SCROW nStartRow = rRange.aStart.Row();
@@ -1158,9 +1159,7 @@ static bool lcl_PutDataArray( ScDocShell& rDocShell, const ScRange& rRange,
rElement >>= aUStr;
if ( !aUStr.isEmpty() )
{
- ScSetStringParam aParam;
- aParam.setTextInput();
- rDoc.SetString(aPos, aUStr, &aParam);
+ rDocFunc.SetStringOrEditCell(aPos, aUStr, false);
}
}
break;