pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1776158 - in /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/shading: AxialShadingContext.java RadialShadingContext.java Type1ShadingContext.java
Date Tue, 27 Dec 2016 15:54:47 GMT
Author: tilman
Date: Tue Dec 27 15:54:47 2016
New Revision: 1776158

URL: http://svn.apache.org/viewvc?rev=1776158&view=rev
Log:
PDFBOX-3640: use default matrix if it is invalid

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
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/shading/Type1ShadingContext.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=1776158&r1=1776157&r2=1776158&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
Tue Dec 27 15:54:47 2016
@@ -112,7 +112,8 @@ public class AxialShadingContext extends
         }
         catch (NoninvertibleTransformException ex)
         {
-            LOG.error(ex, ex);
+            LOG.error(ex.getMessage() + ", matrix: " + matrix, ex);
+            rat = new AffineTransform();
         }
 
         // shading space -> device space

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=1776158&r1=1776157&r2=1776158&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
Tue Dec 27 15:54:47 2016
@@ -118,7 +118,8 @@ public class RadialShadingContext extend
         }
         catch (NoninvertibleTransformException ex)
         {
-            LOG.error(ex, ex);
+            LOG.error(ex.getMessage() + ", matrix: " + matrix, ex);
+            rat = new AffineTransform();
         }
 
         // shading space -> device space

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/shading/Type1ShadingContext.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/shading/Type1ShadingContext.java?rev=1776158&r1=1776157&r2=1776158&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/shading/Type1ShadingContext.java
(original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/shading/Type1ShadingContext.java
Tue Dec 27 15:54:47 2016
@@ -77,7 +77,8 @@ class Type1ShadingContext extends Shadin
         }
         catch (NoninvertibleTransformException ex)
         {
-            LOG.error(ex, ex);
+            LOG.error(ex.getMessage() + ", matrix: " + matrix, ex);
+            rat = new AffineTransform();
         }
     }
 



Mime
View raw message