mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-27 14:29:21 +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;
|
Layout const * lay = NULL;
|
||||||
for (; lit != len; ++lit) {
|
for (; lit != len; ++lit) {
|
||||||
int const level = lit->toclevel;
|
int const level = lit->toclevel;
|
||||||
// we don't want Part
|
// we don't want Part or unnumbered sections
|
||||||
if (level == Layout::NOT_IN_TOC || level < 0 || level >= minlevel)
|
if (level == Layout::NOT_IN_TOC || level < 0
|
||||||
|
|| level >= minlevel || lit->counter.empty())
|
||||||
continue;
|
continue;
|
||||||
lay = &*lit;
|
lay = &*lit;
|
||||||
minlevel = level;
|
minlevel = level;
|
||||||
|
Loading…
Reference in New Issue
Block a user