From 53131854ff27b563662f8e1c9aebfd7eb74ea83a Mon Sep 17 00:00:00 2001 From: kunfei Date: Thu, 27 Jan 2022 22:57:02 +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 --- .../main/java/io/legado/app/model/analyzeRule/QueryTTF.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/src/main/java/io/legado/app/model/analyzeRule/QueryTTF.java b/app/src/main/java/io/legado/app/model/analyzeRule/QueryTTF.java index cbd717ebd..aa34f9a93 100644 --- a/app/src/main/java/io/legado/app/model/analyzeRule/QueryTTF.java +++ b/app/src/main/java/io/legado/app/model/analyzeRule/QueryTTF.java @@ -235,7 +235,7 @@ public class QueryTTF { public final Map codeToGlyph = new HashMap<>(); public final Map glyphToCode = new HashMap<>(); - private int limitMix = 0; + private int limitMix = Integer.MAX_VALUE; private int limitMax = 0; /** @@ -478,10 +478,8 @@ public class QueryTTF { for (short b : glyf.get(gid).xCoordinates) sb.append(b); for (short b : glyf.get(gid).yCoordinates) sb.append(b); String val = sb.toString(); - if (limitMix == 0) limitMix = key; if (limitMix > key) limitMix = key; if (limitMax < key) limitMax = key; - limitMax = key; codeToGlyph.put(key, val); if (glyphToCode.containsKey(val)) continue; glyphToCode.put(val, key);