This commit is contained in:
821938089 committed 2022-08-16 20:15:08 +08:00
1 parent d2546d6791
commit 694dddcadd
1 file changed
+3
@@ -257,6 +257,9 @@ class EpubFile(var book: Book) {
} else {
parseFirstPage(chapterList, refs)
parseMenu(chapterList, refs, 0)
val lh = LinkedHashSet(chapterList)
chapterList.clear()
chapterList.addAll(lh)
for (i in chapterList.indices) {
chapterList[i].index = i
}