summaryrefslogtreecommitdiff
path: root/editeng
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2024-10-07 19:41:05 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2024-10-08 09:47:48 +0200
commitd7069deb280d305fdf85006c30b859f7d61b5b84 (patch)
tree63fdd3b86fd3ca5da7fbb7e435d93997fb786526 /editeng
parentd63d93a06e2c926ca270b87f5a8bd7016020251a (diff)
cid#1607133 Overflowed constant
Change-Id: I63d1ca446491b8b376bb54e410b3d9edc543a734 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174619 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'editeng')
-rw-r--r--editeng/source/editeng/editdoc.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/editeng/source/editeng/editdoc.cxx b/editeng/source/editeng/editdoc.cxx
index 12cab1c85230..be2f3b9a8980 100644
--- a/editeng/source/editeng/editdoc.cxx
+++ b/editeng/source/editeng/editdoc.cxx
@@ -1035,6 +1035,7 @@ EditPaM EditDoc::InsertParaBreak( EditPaM aPaM, bool bKeepEndingAttribs )
assert(aPaM.GetNode());
ContentNode* pCurNode = aPaM.GetNode();
sal_Int32 nPos = GetPos( pCurNode );
+ assert(nPos != EE_PARA_NOT_FOUND);
OUString aStr = aPaM.GetNode()->Copy( aPaM.GetIndex() );
aPaM.GetNode()->Erase( aPaM.GetIndex() );