mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Don't consider unnumbered sections for tocdepth.
This commit is contained in:
parent
33b0cff2f3
commit
5636646134
@ -1536,8 +1536,9 @@ Layout const & DocumentClass::getTOCLayout() const
|
||||
Layout const * lay = NULL;
|
||||
for (; lit != len; ++lit) {
|
||||
int const level = lit->toclevel;
|
||||
// we don't want Part
|
||||
if (level == Layout::NOT_IN_TOC || level < 0 || level >= minlevel)
|
||||
// we don't want Part or unnumbered sections
|
||||
if (level == Layout::NOT_IN_TOC || level < 0
|
||||
|| level >= minlevel || lit->counter.empty())
|
||||
continue;
|
||||
lay = &*lit;
|
||||
minlevel = level;
|
||||
|
Loading…
Reference in New Issue
Block a user