]> git.lyx.org Git - features.git/blobdiff - src/insets/InsetNote.cpp
* InsetXXX::addToToc(): properly use passed ParConstIterator.
[features.git] / src / insets / InsetNote.cpp
index babe2bf651b39c3887463f27b1f2eaafcf34bc7d..118c045dc220b6aa9a5c69e167661315c5fb9773 100644 (file)
@@ -220,9 +220,11 @@ void InsetNote::updateLabels(Buffer const & buf, ParIterator const & it)
 }
 
 
-void InsetNote::addToToc(TocList & toclist, Buffer const & /*buf*/, ParConstIterator const &) const
+void InsetNote::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["note"];
        docstring str;