判断查询结果,查询失败则不修改值.

pull/502/head
Antecer 4 years ago
parent b305e3cafb
commit a0e908912e
  1. 2
      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("")

Loading…
Cancel
Save