TOC settings: fix possible crash (#7434)

reviewable/pr7436/r1
poire-z 3 years ago committed by GitHub
parent 1cd478fd70
commit 932df881b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -961,7 +961,9 @@ See Style tweaks → Miscellaneous → Alternative ToC hints.]]),
break
end
end
toc_ticks_levels[#toc_ticks_levels].separator = true
if #toc_ticks_levels > 0 then
toc_ticks_levels[#toc_ticks_levels].separator = true
end
table.insert(toc_ticks_levels, {
text = _("Bind chapter navigation to ticks"),
help_text = _([[Entries from ToC levels that are ignored in the progress bars will still be used for chapter navigation and 'page/time left until next chapter' in the footer.

Loading…
Cancel
Save