diff --git a/frontend/apps/reader/modules/readertoc.lua b/frontend/apps/reader/modules/readertoc.lua index d376e6c7b..3ca38a622 100644 --- a/frontend/apps/reader/modules/readertoc.lua +++ b/frontend/apps/reader/modules/readertoc.lua @@ -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.