return;
docstring const str = getRefLabel();
- TocBuilder & b = backend.builder("tableofcontents");
- b.pushItem(cpit, str, output_active);
- b.pop();
+ shared_ptr<Toc> toc = backend.toc("tableofcontents");
+ // Assign to appropriate level
+ int const item_depth =
+ (buffer().masterParams().documentClass().hasLaTeXLayout("chapter"))
+ ? 1 : 2;
+ toc->push_back(TocItem(cpit, item_depth, str, output_active));
}
- Fix disappearing selection with clipboard managers on X11 (bug 11715).
+- Correct hierarchy level of Bib(la)tex inset in outliner if "Show in Toc"
+ is selected (bug 11863).
+
* INTERNALS