pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jahew...@apache.org
Subject svn commit: r1691469 - in /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/shading: AxialShadingContext.java RadialShadingContext.java
Date Fri, 17 Jul 2015 00:43:35 GMT
Author: jahewson
Date: Fri Jul 17 00:43:34 2015
New Revision: 1691469

URL: http://svn.apache.org/r1691469
Log:
PDFBOX-2881: Fix typo

Modified:
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/shading/AxialShadingContext.java
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/shading/RadialShadingContext.java

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/shading/AxialShadingContext.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/shading/AxialShadingContext.java?rev=1691469&r1=1691468&r2=1691469&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/shading/AxialShadingContext.java
(original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/shading/AxialShadingContext.java
Fri Jul 17 00:43:34 2015
@@ -121,7 +121,7 @@ public class AxialShadingContext extends
 
         // worst case for the number of steps is opposite diagonal corners, so use that
         double dist = Math.sqrt(Math.pow(deviceBounds.getMaxX() - deviceBounds.getMinX(),
2) +
-                                Math.pow(deviceBounds.getMaxY() - deviceBounds.getMinX(),
2));
+                                Math.pow(deviceBounds.getMaxY() - deviceBounds.getMinY(),
2));
         factor = (int) Math.ceil(dist);
         
         // build the color table for the given number of steps

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/shading/RadialShadingContext.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/shading/RadialShadingContext.java?rev=1691469&r1=1691468&r2=1691469&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/shading/RadialShadingContext.java
(original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/shading/RadialShadingContext.java
Fri Jul 17 00:43:34 2015
@@ -127,7 +127,7 @@ public class RadialShadingContext extend
 
         // worst case for the number of steps is opposite diagonal corners, so use that
         double dist = Math.sqrt(Math.pow(deviceBounds.getMaxX() - deviceBounds.getMinX(),
2) +
-                                Math.pow(deviceBounds.getMaxY() - deviceBounds.getMinX(),
2));
+                                Math.pow(deviceBounds.getMaxY() - deviceBounds.getMinY(),
2));
         factor = (int) Math.ceil(dist);
 
         // build the color table for the given number of steps



Mime
View raw message