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
This commit is contained in:
Angus Leeming 2003-09-14 19:59:52 +00:00
parent d6e9a80492
commit 9e4306d576
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2003-09-14 Angus Leeming <leeming@lyx.org>
* 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 <larsbj@lyx.org>
* GraphicsCacheItem.C: change Assert to BOOST_ASSERT

View File

@ -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);