diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/definition.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/definition.cpp b/src/definition.cpp index 936565d..fd0b68f 100644 --- a/src/definition.cpp +++ b/src/definition.cpp @@ -1837,6 +1837,7 @@ void Definition::writeToc(OutputList &ol, const LocalToc &localToc) level = nextLevel; } } + if (level > maxLevel) level = maxLevel; while (level>1 && level <= maxLevel) { if (inLi[level]) ol.writeString("</li>\n"); |