From: Abdelrazak Younes Date: Tue, 30 Sep 2008 11:18:16 +0000 (+0000) Subject: stupid cut&paste error. X-Git-Tag: 1.6.10~3249 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=2d55770a29df4e4c5e918610f9ed3193f000c292;p=features.git stupid cut&paste error. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26640 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/TocBackend.cpp b/src/TocBackend.cpp index 2da31fca17..ebaff36b53 100644 --- a/src/TocBackend.cpp +++ b/src/TocBackend.cpp @@ -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; }