sc/source/ui/unoobj/cellsuno.cxx |    5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

New commits:
commit b9e2c5d2a36fbd189c20448cadf4212edf02914d
Author:     Andreas Heinisch <andreas.heini...@yahoo.de>
AuthorDate: Thu Nov 4 11:50:51 2021 +0100
Commit:     Eike Rathke <er...@redhat.com>
CommitDate: Mon Nov 8 23:04:54 2021 +0100

    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 <er...@redhat.com>

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;

Reply via email to