diff options
author | Michael Stahl <mstahl@redhat.com> | 2012-08-07 20:58:22 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2012-08-07 21:02:34 +0200 |
commit | 8a66a7789698b12f2c07169e0106413de2f39fb8 (patch) | |
tree | e32c679f3697fcaeae098c135d65cf64b36e19e4 /sw/source | |
parent | 1386ccc8edf467d69ebb4a06ea5f55940cf4024f (diff) |
fdo#51832: SwRedlineAcceptDlg: fix STL conversion:
62b7606fddfef9e1a7645a2d3d605f1fa3aee263 wrongly converted the call to
aRedlineParents.DeleteAndDestroy() in
SwRedlineAcceptDlg::RemoveParents() and erases one element less than
the old code, which results in access to deleted SvListEntry and crash.
Change-Id: Ie2749cb3f17b36649adff46c166642fccde31329
Diffstat (limited to 'sw/source')
-rw-r--r-- | sw/source/ui/misc/redlndlg.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/ui/misc/redlndlg.cxx b/sw/source/ui/misc/redlndlg.cxx index 6361533fb029..ebf8dea60323 100644 --- a/sw/source/ui/misc/redlndlg.cxx +++ b/sw/source/ui/misc/redlndlg.cxx @@ -723,7 +723,7 @@ void SwRedlineAcceptDlg::RemoveParents(sal_uInt16 nStart, sal_uInt16 nEnd) // unfortunately by Remove it was selected from the TLB always again ... pTable->SelectAll(sal_False); - aRedlineParents.erase( aRedlineParents.begin() + nStart, aRedlineParents.begin() + nEnd); + aRedlineParents.erase( aRedlineParents.begin() + nStart, aRedlineParents.begin() + nEnd + 1); } void SwRedlineAcceptDlg::InsertParents(sal_uInt16 nStart, sal_uInt16 nEnd) |