diff --git a/app/src/main/java/io/legado/app/ui/book/read/page/provider/ChapterProvider.kt b/app/src/main/java/io/legado/app/ui/book/read/page/provider/ChapterProvider.kt index fad8cc606..5f8cd7622 100644 --- a/app/src/main/java/io/legado/app/ui/book/read/page/provider/ChapterProvider.kt +++ b/app/src/main/java/io/legado/app/ui/book/read/page/provider/ChapterProvider.kt @@ -419,6 +419,7 @@ object ChapterProvider { * 超出边界处理 */ private fun exceed(textLine: TextLine, words: Array) { + if (textLine.textChars.isEmpty()) return val endX = textLine.textChars.last().end if (endX > visibleRight) { val cc = (endX - visibleRight) / words.size