From dc4a43373317efed85144b49cf08ff0a30531991 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Sat, 16 Nov 2024 21:48:20 +0000 Subject: [PATCH] cid#1607833 Overflowed constant MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Ie90b759b76fa587cddd3c160fe7845dec01652c5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176690 Tested-by: Jenkins Reviewed-by: Caolán McNamara --- editeng/source/rtf/svxrtf.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() ))