diff options
author | Mark Hung <marklh9@gmail.com> | 2015-03-25 23:17:11 +0800 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-03-26 14:25:59 +0000 |
commit | 77cb94613be6315b618783b2aa76226ad3107163 (patch) | |
tree | c190a1a6ed8c53b2a833808f4f39fe05bfb29c9b | |
parent | f340278df616921c663075be692264ca37d86d84 (diff) |
Fix DocumentRedlineManager code that crashes Writer.
One of my document crashes Writer when I delete one table row, with
change tracking enabled. I observed that in DeleteRedline(),
either Start or End of the SwRangeRedline object has been changed
so that it breaks the order of SwRedlineTable.
Change-Id: I6e477488a894996dea4efb433eb3e03edf5fd26d
Reviewed-on: https://gerrit.libreoffice.org/15002
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r-- | sw/source/core/doc/DocumentRedlineManager.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/doc/DocumentRedlineManager.cxx b/sw/source/core/doc/DocumentRedlineManager.cxx index bc31678cafe5..4fb65aa0d64f 100644 --- a/sw/source/core/doc/DocumentRedlineManager.cxx +++ b/sw/source/core/doc/DocumentRedlineManager.cxx @@ -1973,7 +1973,7 @@ bool DocumentRedlineManager::DeleteRedline( const SwPaM& rRange, bool bSaveInUnd if( !pRedl->HasValidRange() ) { // re-insert - mpRedlineTbl->Remove( pRedl ); + mpRedlineTbl->Remove( n ); mpRedlineTbl->Insert( pRedl ); --n; } |