From 33b78002156a9049ddb4c91fbcbfb13fc82cbdcf Mon Sep 17 00:00:00 2001 From: kunfei Date: Thu, 17 Feb 2022 11:32:45 +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 --- .../app/ui/book/read/page/provider/ChapterProvider.kt | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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 a289e04b5..54894127b 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 @@ -164,7 +164,7 @@ object ChapterProvider { } durY = setTypeImage( book, bookChapter, matcher.group(1)!!, - durY, textPages, book.getImageStyle() + absStartX, durY, textPages, book.getImageStyle() ) start = matcher.end() } @@ -204,6 +204,7 @@ object ChapterProvider { book: Book, chapter: BookChapter, src: String, + absStartX: Int, y: Float, textPages: ArrayList, imageStyle: String?, @@ -254,8 +255,8 @@ object ChapterProvider { textLine.textChars.add( TextChar( charData = src, - start = start, - end = end, + start = absStartX + start, + end = absStartX + end, isImage = true ) )