diff options
author | sb <sb@openoffice.org> | 2010-02-22 10:34:02 +0100 |
---|---|---|
committer | sb <sb@openoffice.org> | 2010-02-22 10:34:02 +0100 |
commit | 935598206f5a469dc459430be0bf9fec558a42fd (patch) | |
tree | 77801bbca0616b01f5fd50dc1265bb9de8758af8 /sc | |
parent | 6272f8f84daa97cbcec5581f09c1bb07e5c1e3b3 (diff) |
sb118: #i109512# do not operate on invalidated iterators
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/app/inputwin.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sc/source/ui/app/inputwin.cxx b/sc/source/ui/app/inputwin.cxx index a5b481d3174a..fc92ab261ab9 100644 --- a/sc/source/ui/app/inputwin.cxx +++ b/sc/source/ui/app/inputwin.cxx @@ -771,8 +771,9 @@ __EXPORT ScTextWnd::~ScTextWnd() { delete pEditView; delete pEditEngine; - for( AccTextDataVector::reverse_iterator aIt = maAccTextDatas.rbegin(), aEnd = maAccTextDatas.rend(); aIt != aEnd; ++aIt ) - (*aIt)->Dispose(); + while (!maAccTextDatas.empty()) { + maAccTextDatas.back()->Dispose(); + } } void __EXPORT ScTextWnd::Paint( const Rectangle& rRec ) |