| author | Michael Stahl <mstahl@redhat.com> | 2012-08-07 18:58:22 (GMT) |
|---|---|---|
| committer | Michael Stahl <mstahl@redhat.com> | 2012-08-07 19:02:34 (GMT) |
| commit | 8a66a7789698b12f2c07169e0106413de2f39fb8 (patch) (side-by-side diff) | |
| tree | e32c679f3697fcaeae098c135d65cf64b36e19e4 | |
| parent | 1386ccc8edf467d69ebb4a06ea5f55940cf4024f (diff) | |
| download | core-8a66a7789698b12f2c07169e0106413de2f39fb8.zip core-8a66a7789698b12f2c07169e0106413de2f39fb8.tar.gz | |
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
| -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 6361533..ebf8dea 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) |
