mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-26 06:15:16 +00:00
Assign InsetBibtex to appropriate toc level
Fixes #11863
(cherry picked from commit 92ba05c53b
)
This commit is contained in:
parent
119d38bedf
commit
991ef3840e
@ -901,9 +901,12 @@ void InsetBibtex::addToToc(DocIterator const & cpit, bool output_active,
|
||||
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));
|
||||
}
|
||||
|
||||
|
||||
|
@ -123,6 +123,9 @@ What's new
|
||||
|
||||
- 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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user