From b97be069bbd76379f6cb31f98a6f1e773b30586a Mon Sep 17 00:00:00 2001 From: gedoor Date: Sun, 11 Jul 2021 19:52:16 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../io/legado/app/ui/book/read/page/provider/ChapterProvider.kt | 1 + 1 file changed, 1 insertion(+) 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