sw/source/filter/ascii/parasc.cxx |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

New commits:
commit 90ee98190302de9a5f570b73d48a628ce41190f3
Author: Tamás Zolnai <[email protected]>
Date:   Thu Jan 18 13:57:22 2018 +0100

    tdf#115088: Pasting multi-line text from external source behaves strangely
    
    Regression from:
    e68b6e349c31ac1376e90218013e1e7612f2b522
    
    AppendTextNode might be sufficient for import (when there is no
    content in the document), but for clipboard operations better to
    use the original SplitNode method.
    
    Change-Id: I7de3e9bc9c5356acb0b4cc43927a0d39079522b2
    Reviewed-on: https://gerrit.libreoffice.org/48124
    Tested-by: Jenkins <[email protected]>
    Reviewed-by: Tamás Zolnai <[email protected]>
    (cherry picked from commit 657da4697379274295e9fd32d3abc1334ebd50d2)
    Reviewed-on: https://gerrit.libreoffice.org/48206
    Reviewed-by: Caolán McNamara <[email protected]>
    Tested-by: Caolán McNamara <[email protected]>

diff --git a/sw/source/filter/ascii/parasc.cxx 
b/sw/source/filter/ascii/parasc.cxx
index 39d36874efc9..0f0ebc4f7977 100644
--- a/sw/source/filter/ascii/parasc.cxx
+++ b/sw/source/filter/ascii/parasc.cxx
@@ -480,7 +480,10 @@ sal_uLong SwASCIIParser::ReadChars()
         {
             // We found a CR/LF, thus save the text
             InsertText( OUString( pLastStt ));
-            pDoc->getIDocumentContentOperations().AppendTextNode( 
*pPam->GetPoint() );
+            if(bNewDoc)
+                pDoc->getIDocumentContentOperations().AppendTextNode( 
*pPam->GetPoint() );
+            else
+                pDoc->getIDocumentContentOperations().SplitNode( 
*pPam->GetPoint(), false );
             pLastStt = pStt;
             nLineLen = 0;
         }
_______________________________________________
Libreoffice-commits mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to