]> git.lyx.org Git - features.git/commitdiff
stupid bug fix.
authorAbdelrazak Younes <younes@lyx.org>
Wed, 27 Feb 2008 17:51:33 +0000 (17:51 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Wed, 27 Feb 2008 17:51:33 +0000 (17:51 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23287 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/InsetRef.cpp

index 7da23941b6cca00571ec77c0bf49e327c7e32a6c..4c8899a34b679789d2eeb6592fe3aad47400b39c 100644 (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));
 }