xmlgraphics-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sstei...@apache.org
Subject svn commit: r1739071 - /xmlgraphics/commons/trunk/src/main/java/org/apache/xmlgraphics/java2d/AbstractGraphics2D.java
Date Thu, 14 Apr 2016 12:30:22 GMT
Author: ssteiner
Date: Thu Apr 14 12:30:21 2016
New Revision: 1739071

URL: http://svn.apache.org/viewvc?rev=1739071&view=rev
Log:
FOP-2562: Update to PDFBox 2

Modified:
    xmlgraphics/commons/trunk/src/main/java/org/apache/xmlgraphics/java2d/AbstractGraphics2D.java

Modified: xmlgraphics/commons/trunk/src/main/java/org/apache/xmlgraphics/java2d/AbstractGraphics2D.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/main/java/org/apache/xmlgraphics/java2d/AbstractGraphics2D.java?rev=1739071&r1=1739070&r2=1739071&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/main/java/org/apache/xmlgraphics/java2d/AbstractGraphics2D.java
(original)
+++ xmlgraphics/commons/trunk/src/main/java/org/apache/xmlgraphics/java2d/AbstractGraphics2D.java
Thu Apr 14 12:30:21 2016
@@ -904,7 +904,9 @@ public abstract class AbstractGraphics2D
                              AffineTransform xform,
                              ImageObserver obs) {
         boolean retVal = true;
-
+        if (xform == null) {
+            xform = new AffineTransform();
+        }
         if (xform.getDeterminant() != 0) {
             AffineTransform inverseTransform = null;
             try {



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: commits-help@xmlgraphics.apache.org


Mime
View raw message