]> git.lyx.org Git - features.git/commitdiff
stupid cut&paste error.
authorAbdelrazak Younes <younes@lyx.org>
Tue, 30 Sep 2008 11:18:16 +0000 (11:18 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Tue, 30 Sep 2008 11:18:16 +0000 (11:18 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26640 a592a061-630c-0410-9148-cb99ea01b6c8

src/TocBackend.cpp

index 2da31fca17f278015c03bc2e0757ceda2983be08..ebaff36b53df9aabe238bb42f0b7a97c46e3afc8 100644 (file)
@@ -209,7 +209,7 @@ TocIterator Toc::item(int depth, docstring const & str) const
                return end();
        TocIterator it = begin();
        TocIterator itend = end();
-       for (; it != itend; --it) {
+       for (; it != itend; ++it) {
                if (it->depth() == depth && it->str() == str)
                        break;
        }