diff options
-rw-r--r-- | sw/source/filter/ascii/parasc.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sw/source/filter/ascii/parasc.cxx b/sw/source/filter/ascii/parasc.cxx index e3045b0edee8..bd9af08c3cb7 100644 --- a/sw/source/filter/ascii/parasc.cxx +++ b/sw/source/filter/ascii/parasc.cxx @@ -481,7 +481,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; } |