Skip to content

Commit 6652b7a

Browse files
committed
PDFBOX-5961: cast to use correct method
git-svn-id: https://svn.apache.org/repos/asf/pdfbox/trunk@1923961 13f79535-47bb-0310-9956-ffa450edef68
1 parent 214629d commit 6652b7a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/PDType0Font.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,7 @@ public String toUnicode(int code)
545545
// a predefined map shall only be used if there isn't any ToUnicode CMap
546546
if (getToUnicodeCMap() != null)
547547
{
548-
return Character.toString(code);
548+
return Character.toString((char) code);
549549
}
550550

551551
if ((isCMapPredefined || isDescendantCJK) && cMapUCS2 != null)

0 commit comments

Comments
 (0)