diff options
author | Caolán McNamara <caolanm@redhat.com> | 2022-02-07 12:45:33 +0000 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2022-02-07 22:46:08 +0100 |
commit | 522160397ad5b4cb802fcef0b10294e84a612723 (patch) | |
tree | f23876d3715d479da88a3310de99617f7c7055fb /sw | |
parent | 07950568c85ff209c34d2ce962f6950c8d27ca90 (diff) |
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.timar@collabora.com>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/doc/DocumentRedlineManager.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
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 ) |