summaryrefslogtreecommitdiff
path: root/editeng
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2024-10-07 19:43:58 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2024-10-08 09:47:56 +0200
commit388ec7f60945ea2dd639378870b921dfccffb90a (patch)
tree7ec497570500756a9f2cbd5e3ca26d6ae603da74 /editeng
parentd7069deb280d305fdf85006c30b859f7d61b5b84 (diff)
cid#1608272 Overflowed constant
Change-Id: I280718f38900752d2c5090b0a25d7883a6062117 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174620 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Jenkins
Diffstat (limited to 'editeng')
-rw-r--r--editeng/source/editeng/eertfpar.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/editeng/source/editeng/eertfpar.cxx b/editeng/source/editeng/eertfpar.cxx
index 2b983cc404f4..615147f4c148 100644
--- a/editeng/source/editeng/eertfpar.cxx
+++ b/editeng/source/editeng/eertfpar.cxx
@@ -365,6 +365,8 @@ void EditRTFParser::SetAttrInDoc( SvxRTFItemStackType &rSet )
ContentNode* pEN = aEndPaM.GetNode();
sal_Int32 nStartNode = mpEditEngine->GetEditDoc().GetPos( pSN );
sal_Int32 nEndNode = mpEditEngine->GetEditDoc().GetPos( pEN );
+ assert(nStartNode != EE_PARA_NOT_FOUND);
+ assert(nEndNode != EE_PARA_NOT_FOUND);
sal_Int16 nOutlLevel = 0xff;
if (rSet.StyleNo() && mpEditEngine->GetStyleSheetPool() && mpEditEngine->IsImportRTFStyleSheetsSet())