mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-23 10:18:50 +00:00
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:
parent
e14a0ad50f
commit
9fb8d72d62
@ -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));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user