summaryrefslogtreecommitdiff
path: root/sc/source/filter/rtf/rtfparse.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/filter/rtf/rtfparse.cxx')
-rw-r--r--sc/source/filter/rtf/rtfparse.cxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/sc/source/filter/rtf/rtfparse.cxx b/sc/source/filter/rtf/rtfparse.cxx
index 523b2ef32c54..a846b4aee99b 100644
--- a/sc/source/filter/rtf/rtfparse.cxx
+++ b/sc/source/filter/rtf/rtfparse.cxx
@@ -66,14 +66,13 @@ ErrCode ScRTFParser::Read( SvStream& rStream, const OUString& rBaseURL )
{
ScEEParseEntry* pE = maList.back();
if ( // Completely empty
- ( ( pE->aSel.nStartPara == pE->aSel.nEndPara
+ ( pE->aSel.nStartPara == pE->aSel.nEndPara
&& pE->aSel.nStartPos == pE->aSel.nEndPos
- )
+ )
|| // Empty paragraph
- ( pE->aSel.nStartPara + 1 == pE->aSel.nEndPara
+ ( pE->aSel.nStartPara + 1 == pE->aSel.nEndPara
&& pE->aSel.nStartPos == pEdit->GetTextLen( pE->aSel.nStartPara )
&& pE->aSel.nEndPos == 0
- )
)
)
{ // Don't take over the last paragraph