]> git.lyx.org Git - lyx.git/blobdiff - src/Buffer.cpp
Let getPosNearX take horizontal scrolling into account
[lyx.git] / src / Buffer.cpp
index 102b4ef6907e7f1891bb0e516bf008654e408627..e2185fbd897a18711e63f3a4c0335fa66ad007d9 100644 (file)
@@ -2229,8 +2229,8 @@ void Buffer::getLabelList(vector<docstring> & list) const
 
        list.clear();
        shared_ptr<Toc> toc = d->toc_backend.toc("label");
-       TocIterator toc_it = toc->begin();
-       TocIterator end = toc->end();
+       Toc::const_iterator toc_it = toc->begin();
+       Toc::const_iterator end = toc->end();
        for (; toc_it != end; ++toc_it) {
                if (toc_it->depth() == 0)
                        list.push_back(toc_it->str());