From 08804c734357861572c1b3b810ca2ff9104cae72 Mon Sep 17 00:00:00 2001 From: Simon Pepping Date: Sat, 4 Dec 2010 11:26:38 +0000 Subject: [PATCH] Add a cast from char to int before autoboxing git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1042150 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/fop/fonts/Font.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/java/org/apache/fop/fonts/Font.java b/src/java/org/apache/fop/fonts/Font.java index 1dfe290d8..8ca802234 100644 --- a/src/java/org/apache/fop/fonts/Font.java +++ b/src/java/org/apache/fop/fonts/Font.java @@ -178,9 +178,9 @@ public class Font { * @return the distance to adjust for kerning, 0 if there's no kerning */ public int getKernValue(char ch1, char ch2) { - Map kernPair = getKerning().get(ch1); + Map kernPair = getKerning().get((int) ch1); if (kernPair != null) { - Integer width = kernPair.get(ch2); + Integer width = kernPair.get((int) ch2); if (width != null) { return width.intValue() * getFontSize() / 1000; } -- 2.39.5