summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/java/org/apache/fop/fonts/MultiByteFont.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/java/org/apache/fop/fonts/MultiByteFont.java b/src/java/org/apache/fop/fonts/MultiByteFont.java
index 22b5116bb..db72bee0c 100644
--- a/src/java/org/apache/fop/fonts/MultiByteFont.java
+++ b/src/java/org/apache/fop/fonts/MultiByteFont.java
@@ -237,6 +237,9 @@ public class MultiByteFont extends CIDFont implements Substitutable, Positionabl
if (idx < NUM_MOST_LIKELY_GLYPHS) {
mostLikelyGlyphs[idx] = retIdx;
}
+ if (retIdx != 0) {
+ break;
+ }
}
}
return retIdx;