X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FInsetNote.cpp;h=ab90288c6beb5530ad33f553567693c5c5bbf29d;hb=2c357c1d23b7b83839a9beb8225d4f1ae4f793b4;hp=babe2bf651b39c3887463f27b1f2eaafcf34bc7d;hpb=1a4891dec019d9c95c5f80855f119625e98d320e;p=lyx.git diff --git a/src/insets/InsetNote.cpp b/src/insets/InsetNote.cpp index babe2bf651..ab90288c6b 100644 --- a/src/insets/InsetNote.cpp +++ b/src/insets/InsetNote.cpp @@ -220,11 +220,13 @@ void InsetNote::updateLabels(Buffer const & buf, ParIterator const & it) } -void InsetNote::addToToc(TocList & toclist, Buffer const & /*buf*/, ParConstIterator const &) const +void InsetNote::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["note"]; + Toc & toc = buf.tocBackend().toc("note"); docstring str; str = notetranslator_loc().find(params_.type) + from_ascii(": ") + getNewLabel(str);