From 9e4306d5762568bf2ba91d4314bba452c4f131bb Mon Sep 17 00:00:00 2001 From: Angus Leeming Date: Sun, 14 Sep 2003 19:59:52 +0000 Subject: [PATCH] Consider all InProgressProcesses when ascertaining which ones to remove from the list, not every other one. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7741 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/graphics/ChangeLog | 5 +++++ src/graphics/PreviewLoader.C | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/graphics/ChangeLog b/src/graphics/ChangeLog index 65f8f66612..1c163bb277 100644 --- a/src/graphics/ChangeLog +++ b/src/graphics/ChangeLog @@ -1,3 +1,8 @@ +2003-09-14 Angus Leeming + + * PreviewLoader.C (remove): consider all InProgressProcesses when + ascertaining which ones to remove from the list, not every other one. + 2003-09-09 Lars Gullik Bjønnes * GraphicsCacheItem.C: change Assert to BOOST_ASSERT diff --git a/src/graphics/PreviewLoader.C b/src/graphics/PreviewLoader.C index 80008db6b5..a3432f9b22 100644 --- a/src/graphics/PreviewLoader.C +++ b/src/graphics/PreviewLoader.C @@ -435,7 +435,7 @@ void PreviewLoader::Impl::remove(string const & latex_snippet) std::for_each(ipit, ipend, EraseSnippet(latex_snippet)); - for (; ipit != ipend; ++ipit) { + while (ipit != ipend) { InProgressProcesses::iterator curr = ipit++; if (curr->second.snippets.empty()) in_progress_.erase(curr); -- 2.39.2