From a0e908912e1f28cb31a81b3849b7b8ac4b53667a Mon Sep 17 00:00:00 2001 From: Antecer Date: Sun, 22 Nov 2020 23:12:59 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A4=E6=96=AD=E6=9F=A5=E8=AF=A2=E7=BB=93?= =?UTF-8?q?=E6=9E=9C,=E6=9F=A5=E8=AF=A2=E5=A4=B1=E8=B4=A5=E5=88=99?= =?UTF-8?q?=E4=B8=8D=E4=BF=AE=E6=94=B9=E5=80=BC.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/java/io/legado/app/help/JsExtensions.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/io/legado/app/help/JsExtensions.kt b/app/src/main/java/io/legado/app/help/JsExtensions.kt index 6c2d82bbd..fb547c7ec 100644 --- a/app/src/main/java/io/legado/app/help/JsExtensions.kt +++ b/app/src/main/java/io/legado/app/help/JsExtensions.kt @@ -280,7 +280,7 @@ interface JsExtensions { val oldCode = s.toInt() if (oldCode in start until end) { val code = font2.GetCodeByGlyf(font1.GetGlyfByCode(oldCode)) - contentArray[index] = code.toChar() + if(code != 0) contentArray[index] = code.toChar() } } return contentArray.joinToString("")