pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1647919 - /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/rendering/PageDrawer.java
Date Thu, 25 Dec 2014 21:59:01 GMT
Author: tilman
Date: Thu Dec 25 21:59:01 2014
New Revision: 1647919

URL: http://svn.apache.org/r1647919
Log:
PDFBOX-2576: remove Math.round() on an int

Modified:
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/rendering/PageDrawer.java

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/rendering/PageDrawer.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/rendering/PageDrawer.java?rev=1647919&r1=1647918&r2=1647919&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/rendering/PageDrawer.java (original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/rendering/PageDrawer.java Thu Dec
25 21:59:01 2014
@@ -702,8 +702,8 @@ public final class PageDrawer extends PD
         {
             if (!pdImage.getInterpolate())
             {
-                boolean isScaledUp = Math.round(pdImage.getWidth()) < Math.round(at.getScaleX())
||
-                                     Math.round(pdImage.getHeight()) < Math.round(at.getScaleY());
+                boolean isScaledUp = pdImage.getWidth() < Math.round(at.getScaleX()) ||
+                                     pdImage.getHeight() < Math.round(at.getScaleY());
 
                 // if the image is scaled down, we use smooth interpolation, eg PDFBOX-2364
                 // only when scaled up do we use nearest neighbour, eg PDFBOX-2302 / mori-cvpr01.pdf



Mime
View raw message