diff --git a/editeng/source/rtf/svxrtf.cxx b/editeng/source/rtf/svxrtf.cxx index bcb87f6ed6bc..b437cb5598d4 100644 --- a/editeng/source/rtf/svxrtf.cxx +++ b/editeng/source/rtf/svxrtf.cxx @@ -1090,7 +1090,7 @@ void SvxRTFItemStackType::Compress( const SvxRTFParser& rParser ) pTmp->Compress( rParser ); if( !pTmp->nSttCnt - ? (aLastNd.GetIdx()+1 != pTmp->mxStartNodeIdx->GetIdx() || + ? (aLastNd.GetIdx() != pTmp->mxStartNodeIdx->GetIdx() - 1 || !rParser.IsEndPara( &aLastNd, nLastCnt ) ) : ( pTmp->nSttCnt != nLastCnt || aLastNd.GetIdx() != pTmp->mxStartNodeIdx->GetIdx() ))