summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2012-08-07 20:58:22 +0200
committerMichael Stahl <mstahl@redhat.com>2012-08-10 13:26:00 +0200
commit9f89b3dc6301f85ffbb55b526eb2d0f69512e51a (patch)
tree374ee618286563b29561c7874d4e4d3b6537a1d0
parentfebf7c52d5231cbe22340b7e3fec70854945ee31 (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. (cherry picked from commit 8a66a7789698b12f2c07169e0106413de2f39fb8) Change-Id: Ie2749cb3f17b36649adff46c166642fccde31329 Signed-off-by: Tor Lillqvist <tml@iki.fi>
-rw-r--r--sw/source/ui/misc/redlndlg.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/ui/misc/redlndlg.cxx b/sw/source/ui/misc/redlndlg.cxx
index ae65e1f4522b..e902961bda48 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)