]> git.lyx.org Git - lyx.git/blobdiff - src/TocBackend.cpp
Typos.
[lyx.git] / src / TocBackend.cpp
index 2da31fca17f278015c03bc2e0757ceda2983be08..8b2015fd0a12cae9aec267bd4536843f293dcb6a 100644 (file)
@@ -203,13 +203,13 @@ TocIterator Toc::item(DocIterator const & dit) const
 }
 
 
-TocIterator Toc::item(int depth, docstring const & str) const
+Toc::iterator Toc::item(int depth, docstring const & str)
 {
        if (empty())
                return end();
-       TocIterator it = begin();
-       TocIterator itend = end();
-       for (; it != itend; --it) {
+       iterator it = begin();
+       iterator itend = end();
+       for (; it != itend; ++it) {
                if (it->depth() == depth && it->str() == str)
                        break;
        }