stupid bug fix.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23287 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2008-02-27 17:51:33 +00:00
parent e14a0ad50f
commit 9fb8d72d62

View File

@ -179,7 +179,7 @@ void InsetRef::addToToc(Buffer const & buf,
// The Toc item for this label already exists so let's add
// this inset to this node.
++it;
while (it->str() == reflabel && it != end)
while (it != end || it->str() == reflabel)
++it;
toc.insert(it, TocItem(cpit, 1, reflabel));
}