]> git.lyx.org Git - features.git/blobdiff - src/insets/InsetIndex.cpp
* InsetXXX::addToToc(): properly use passed ParConstIterator.
[features.git] / src / insets / InsetIndex.cpp
index 074c0489d431f060b56004047e4e6c126c965300..925d8618e72d311272c1ad4dd3889a421c814ff6 100644 (file)
@@ -61,9 +61,11 @@ void InsetIndex::write(Buffer const & buf, ostream & os) const
 }
 
 
-void InsetIndex::addToToc(TocList & toclist, Buffer const & buf, ParConstIterator const &) const
+void InsetIndex::addToToc(TocList & toclist, Buffer const & buf,
+       ParConstIterator const & cpit) const
 {
-       ParConstIterator pit = par_const_iterator_begin(*this);
+       ParConstIterator pit = cpit;
+       pit.push_back(*this);
 
        Toc & toc = toclist["index"];
        docstring str;