summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorBjoern Michaelsen <bjoern.michaelsen@canonical.com>2011-09-14 17:32:26 +0200
committerBjoern Michaelsen <bjoern.michaelsen@canonical.com>2011-09-14 18:14:46 +0200
commitdd482fde498c71025397f5f5c21ce6c65aa15892 (patch)
tree231c3b771b8182d84499ccd0094760a2211809ce /sw
parente26ea36825c1dc51b69f5d5d6f80db0f0ec09f51 (diff)
do not try to read from an iterator which we just deleted from the container
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/doc/docbm.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/doc/docbm.cxx b/sw/source/core/doc/docbm.cxx
index 99590ba2b175..2e3b850da72f 100644
--- a/sw/source/core/doc/docbm.cxx
+++ b/sw/source/core/doc/docbm.cxx
@@ -739,8 +739,8 @@ namespace sw { namespace mark
//vector, and on xHoldPastErase release findMark won't find
//it anymore.
pMark_t xHoldPastErase = *aI;
- m_vMarks.erase(aI);
m_aMarkNamesSet.erase(ppMark->get()->GetName());
+ m_vMarks.erase(aI);
}
void MarkManager::deleteMark(const IMark* const pMark)