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

src/insets/InsetRef.cpp

index 4c8899a34b679789d2eeb6592fe3aad47400b39c..84a602e8648a0e63da8f0bd713a2445851fd94ee 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 != end || it->str() == reflabel)
+       while (it != end && it->str() == reflabel)
                ++it;
        toc.insert(it, TocItem(cpit, 1, reflabel));
 }