editeng/source/editeng/editdoc.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 93eb912f109bc25ba84861f39d1d6d8fe4c58f47 Author: Caolán McNamara <caolan.mcnam...@collabora.com> AuthorDate: Tue Oct 15 13:00:12 2024 +0100 Commit: Caolán McNamara <caolan.mcnam...@collabora.com> CommitDate: Fri Nov 29 17:10:22 2024 +0100 cid#1606728 Overflowed integer argument Change-Id: I6fef2b6818018b8a0f82125ef2d8220688d642a3 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177536 Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com> Tested-by: Jenkins diff --git a/editeng/source/editeng/editdoc.cxx b/editeng/source/editeng/editdoc.cxx index d0e6d987b424..b2c83ccde7e7 100644 --- a/editeng/source/editeng/editdoc.cxx +++ b/editeng/source/editeng/editdoc.cxx @@ -373,7 +373,7 @@ sal_Int32 ParaPortion::GetLineNumber( sal_Int32 nIndex ) const // Then it should be at the end of the last line! DBG_ASSERT(nIndex == maLineList[nCount - 1].GetEnd(), "Index dead wrong!"); - return (maLineList.Count() - 1); + return nCount - 1; } void ParaPortion::CorrectValuesBehindLastFormattedLine( sal_Int32 nLastFormattedLine )