]> git.lyx.org Git - features.git/blobdiff - src/insets/InsetFoot.cpp
* InsetXXX::addToToc(): properly use passed ParConstIterator.
[features.git] / src / insets / InsetFoot.cpp
index fe26f80870feca35498d3c979863dde089abe4a1..cfc902a21a34b0f0aacd72ad04329e23e1bd2c28 100644 (file)
@@ -75,9 +75,11 @@ void InsetFoot::updateLabels(Buffer const & buf, ParIterator const & it)
 }
 
 
-void InsetFoot::addToToc(TocList & toclist, Buffer const & buf, ParConstIterator const &) const
+void InsetFoot::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["footnote"];
        // FIXME: we probably want the footnote number too.