From d237bf76a5d95f15bc4e3cd1cdb6a885c85a4ec4 Mon Sep 17 00:00:00 2001 From: John Levon Date: Sat, 12 Apr 2003 04:39:40 +0000 Subject: [PATCH] fix a crash - parlist conversion silly git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6782 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/insets/ChangeLog | 6 ++++++ src/insets/insetwrap.C | 3 --- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/insets/ChangeLog b/src/insets/ChangeLog index 850d25cd76..90fd6d0003 100644 --- a/src/insets/ChangeLog +++ b/src/insets/ChangeLog @@ -1,3 +1,9 @@ +2003-04-12 John Levon + + * insetwrap.C (addToToc): fix a crash, conversion + from while to for loop forgot to remove the explicit + increment + 2003-04-10 John Levon * insettabular.C (tabularFeature): make sure diff --git a/src/insets/insetwrap.C b/src/insets/insetwrap.C index 96f261b5c2..5fd53c41d6 100644 --- a/src/insets/insetwrap.C +++ b/src/insets/insetwrap.C @@ -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; } } -- 2.39.5