You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-commits@xmlgraphics.apache.org by je...@apache.org on 2005/11/14 15:22:38 UTC
svn commit: r344125 -
/xmlgraphics/fop/trunk/src/java/org/apache/fop/svg/PDFImageElementBridge.java
Author: jeremias
Date: Mon Nov 14 06:20:54 2005
New Revision: 344125
URL: http://svn.apache.org/viewcvs?rev=344125&view=rev
Log:
Automated parameter rename failed because there was an instance variable called "e" which caused an NPE in examples/fo/build.xml on target "newPDF".
Modified:
xmlgraphics/fop/trunk/src/java/org/apache/fop/svg/PDFImageElementBridge.java
Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/svg/PDFImageElementBridge.java
URL: http://svn.apache.org/viewcvs/xmlgraphics/fop/trunk/src/java/org/apache/fop/svg/PDFImageElementBridge.java?rev=344125&r1=344124&r2=344125&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/svg/PDFImageElementBridge.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/svg/PDFImageElementBridge.java Mon Nov 14 06:20:54 2005
@@ -77,9 +77,9 @@
(purl.toString(), is, null);
JpegImage jpeg = new JpegImage(ii);
jpeg.load(FopImage.ORIGINAL_DATA);
- PDFJpegNode node = new PDFJpegNode(jpeg, ctx, e, purl);
+ PDFJpegNode node = new PDFJpegNode(jpeg, ctx, imageElement, purl);
- Rectangle2D imgBounds = getImageBounds(ctx, e);
+ Rectangle2D imgBounds = getImageBounds(ctx, imageElement);
Rectangle2D bounds = node.getPrimitiveBounds();
float [] vb = new float[4];
vb[0] = 0; // x
@@ -89,14 +89,14 @@
// handles the 'preserveAspectRatio', 'overflow' and 'clip'
// and sets the appropriate AffineTransform to the image node
- initializeViewport(ctx, e, node, vb, imgBounds);
+ initializeViewport(ctx, imageElement, node, vb, imgBounds);
return node;
}
} catch (Exception ex) {
//TODO Handle this exception
}
- return superCreateGraphicsNode(ctx, e, purl);
+ return superCreateGraphicsNode(ctx, imageElement, purl);
}
/**
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-commits-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-commits-help@xmlgraphics.apache.org