This commit is contained in:
Horis committed 2023-10-01 20:47:36 +08:00
1 parent e5d8004fd4
commit ac11d54e0e
1 file changed
+1 -1
@@ -475,7 +475,7 @@ object ChapterProvider {
}
textLine.paragraphNum = paragraphNum
textLine.chapterPosition =
(textPages.getOrNull(textPages.lastIndex - 1)?.lines?.last()?.run {
(textPages.getOrNull(textPages.lastIndex - 1)?.lines?.lastOrNull()?.run {
chapterPosition + charSize + if (isParagraphEnd) 1 else 0
} ?: 0) + sbLength
textLine.pagePosition = sbLength