Skip to content

Commit 9ca4000

Browse files
committed
remove unnecessary cast
1 parent 69a3bea commit 9ca4000

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

java/libraries/pdf/src/processing/pdf/PGraphicsPDF.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -408,8 +408,8 @@ protected void imageImpl(PImage image,
408408
translate(x1, y1);
409409
int imageWidth = image.width;
410410
int imageHeight = image.height;
411-
scale((x2 - x1) / (float)imageWidth,
412-
(y2 - y1) / (float)imageHeight);
411+
scale((x2 - x1) / imageWidth,
412+
(y2 - y1) / imageHeight);
413413
if (u2-u1 == imageWidth && v2-v1 == imageHeight) {
414414
g2.drawImage((Image) image.getNative(), 0, 0, null);
415415
} else {

0 commit comments

Comments
 (0)