sw/source/core/doc/DocumentRedlineManager.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
New commits: commit 522160397ad5b4cb802fcef0b10294e84a612723 Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Mon Feb 7 12:45:33 2022 +0000 Commit: Andras Timar <andras.ti...@collabora.com> CommitDate: Mon Feb 7 22:46:08 2022 +0100 ofz#44471 crash in isMoved if re-insert of invalid range failed Change-Id: I21a3a3e544c016205d65d7e81889ebfddc7e322d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/129563 Tested-by: Jenkins Reviewed-by: Andras Timar <andras.ti...@collabora.com> diff --git a/sw/source/core/doc/DocumentRedlineManager.cxx b/sw/source/core/doc/DocumentRedlineManager.cxx index a3de2c9143fb..2c2f4a1b080b 100644 --- a/sw/source/core/doc/DocumentRedlineManager.cxx +++ b/sw/source/core/doc/DocumentRedlineManager.cxx @@ -1429,7 +1429,8 @@ DocumentRedlineManager::AppendRedline(SwRangeRedline* pNewRedl, bool const bCall bCompress = true; // set IsMoved checking nearby redlines - maRedlineTable.isMoved(n); + if (n < maRedlineTable.size()) // in case above 're-insert' failed + maRedlineTable.isMoved(n); } } else if( SwComparePosition::Inside == eCmpPos )