Skip to content

Commit 853e076

Browse files
committed
PDFBOX-5660: sonar fix
git-svn-id: https://svn.apache.org/repos/asf/pdfbox/trunk@1927645 13f79535-47bb-0310-9956-ffa450edef68
1 parent baec3a7 commit 853e076

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/PDCIDFontType2.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ public float getHeight(int code) throws IOException
337337
{
338338
// todo: really we want the BBox, (for text extraction:)
339339
return (ttf.getHorizontalHeader().getAscender() + -ttf.getHorizontalHeader().getDescender())
340-
/ ttf.getUnitsPerEm(); // todo: shouldn't this be the yMax/yMin?
340+
/ (float) ttf.getUnitsPerEm(); // todo: shouldn't this be the yMax/yMin?
341341
}
342342

343343
@Override

0 commit comments

Comments
 (0)