summaryrefslogtreecommitdiff
authorMichael Stahl <mstahl@redhat.com>2012-08-07 18:58:22 (GMT)
committer Michael Stahl <mstahl@redhat.com>2012-08-07 19:02:34 (GMT)
commit8a66a7789698b12f2c07169e0106413de2f39fb8 (patch) (side-by-side diff)
treee32c679f3697fcaeae098c135d65cf64b36e19e4
parent1386ccc8edf467d69ebb4a06ea5f55940cf4024f (diff)
downloadcore-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
Diffstat (more/less context) (ignore whitespace changes)
-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 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)