fix a crash - parlist conversion silly

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6782 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
John Levon 2003-04-12 04:39:40 +00:00
parent ce04b1c7f1
commit d237bf76a5
2 changed files with 6 additions and 3 deletions

View File

@ -1,3 +1,9 @@
2003-04-12 John Levon <levon@movementarian.org>
* insetwrap.C (addToToc): fix a crash, conversion
from while to for loop forgot to remove the explicit
increment
2003-04-10 John Levon <levon@movementarian.org>
* insettabular.C (tabularFeature): make sure

View File

@ -267,8 +267,6 @@ bool InsetWrap::showInsetDialog(BufferView * bv) const
void InsetWrap::addToToc(toc::TocList & toclist, Buffer const * buf) const
{
// Now find the caption in the float...
// We now tranverse the paragraphs of
// the inset...
ParagraphList::iterator tmp = inset.paragraphs.begin();
ParagraphList::iterator end = inset.paragraphs.end();
@ -281,7 +279,6 @@ void InsetWrap::addToToc(toc::TocList & toclist, Buffer const * buf) const
toc::TocItem const item(tmp->id(), 0 , str);
toclist[name].push_back(item);
}
++tmp;
}
}