]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetMarginal.cpp
Andre's s/getTextClass/textClass/ cleanup.
[lyx.git] / src / insets / InsetMarginal.cpp
index 03e48e5fba01679a99aecbc310ec5bd50a11b2d3..094d2a22cb9e9e488add4e3cb5026f30749af7cb 100644 (file)
@@ -79,11 +79,13 @@ int InsetMarginal::docbook(Buffer const & buf, odocstream & os,
 }
 
 
-void InsetMarginal::addToToc(TocList & toclist, Buffer const & buf, ParConstIterator const &) const
+void InsetMarginal::addToToc(Buffer const & buf,
+       ParConstIterator const & cpit) const
 {
-       ParConstIterator pit = par_const_iterator_begin(*this);
+       ParConstIterator pit = cpit;
+       pit.push_back(*this);
 
-       Toc & toc = toclist["marginalnote"];
+       Toc & toc = buf.tocBackend().toc("marginalnote");
        docstring str;
        str = getNewLabel(str);
        toc.push_back(TocItem(pit, 0, str));