pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1574961 - /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/shading/RadialShadingContext.java
Date Thu, 06 Mar 2014 17:01:34 GMT
Author: tilman
Date: Thu Mar  6 17:01:34 2014
New Revision: 1574961

URL: http://svn.apache.org/r1574961
Log:
PDFBOX-1931: fix regression introduced in rev. 1562921, revert 2 lines to use Matrix.getXScale()
as before, instead of AffineTransform.getScaleX() because its different

Modified:
    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/RadialShadingContext.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/shading/RadialShadingContext.java?rev=1574961&r1=1574960&r2=1574961&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
Thu Mar  6 17:01:34 2014
@@ -85,8 +85,8 @@ public class RadialShadingContext implem
             AffineTransform at = ctm.createAffineTransform();
             at.transform(coords, 0, coords, 0, 1);
             at.transform(coords, 3, coords, 3, 1);
-            coords[2] *= at.getScaleX();
-            coords[5] *= at.getScaleX();
+            coords[2] *= ctm.getXScale();
+            coords[5] *= ctm.getXScale();
         }
         // transform coords to device space
         xform.transform(coords, 0, coords, 0, 1);



Mime
View raw message