diff options
-rw-r--r-- | sw/source/filter/ascii/parasc.cxx | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/sw/source/filter/ascii/parasc.cxx b/sw/source/filter/ascii/parasc.cxx index 5bc3999b358c..2cf851d0b558 100644 --- a/sw/source/filter/ascii/parasc.cxx +++ b/sw/source/filter/ascii/parasc.cxx @@ -401,19 +401,17 @@ ErrCode SwASCIIParser::ReadChars() *pStt = 0; ++pStt; - bool bChkSplit = false; + bool bChkSplit = true; if( LINEEND_CRLF == pUseMe->GetParaFlags() ) { if( pStt == pEnd ) + { cLastCR = 0x0d; + bChkSplit = false; + } else if( 0x0a == *pStt ) - { ++pStt; - bChkSplit = true; - } } - else - bChkSplit = true; // We skip the last one at the end if( bChkSplit && ( !rInput.eof() || pEnd != pStt )) |