1 |
From 6fbf4caf7385d988559701d14ceed7925b76997d Mon Sep 17 00:00:00 2001 |
2 |
From: David Tardon <dtardon@redhat.com> |
3 |
Date: Tue, 22 Mar 2011 14:11:12 +0100 |
4 |
Subject: [PATCH] beware of invalidated iterator |
5 |
|
6 |
--- |
7 |
sc/source/core/data/segmenttree.cxx | 2 ++ |
8 |
1 files changed, 2 insertions(+), 0 deletions(-) |
9 |
|
10 |
diff --git a/sc/source/core/data/segmenttree.cxx b/sc/source/core/data/segmenttree.cxx |
11 |
index d7d1153..08c3e3c 100644 |
12 |
--- a/sc/source/core/data/segmenttree.cxx |
13 |
+++ b/sc/source/core/data/segmenttree.cxx |
14 |
@@ -204,12 +204,14 @@ template<typename _ValueType, typename _ExtValueType> |
15 |
void ScFlatSegmentsImpl<_ValueType, _ExtValueType>::removeSegment(SCCOLROW nPos1, SCCOLROW nPos2) |
16 |
{ |
17 |
maSegments.shift_left(nPos1, nPos2); |
18 |
+ maItr = maSegments.begin(); |
19 |
} |
20 |
|
21 |
template<typename _ValueType, typename _ExtValueType> |
22 |
void ScFlatSegmentsImpl<_ValueType, _ExtValueType>::insertSegment(SCCOLROW nPos, SCCOLROW nSize, bool bSkipStartBoundary) |
23 |
{ |
24 |
maSegments.shift_right(nPos, nSize, bSkipStartBoundary); |
25 |
+ maItr = maSegments.begin(); |
26 |
} |
27 |
|
28 |
template<typename _ValueType, typename _ExtValueType> |
29 |
-- |
30 |
1.7.4.1 |
31 |
|