From 5d275dd2d63972a2ba9f865b3813f602c163c7f5 Mon Sep 17 00:00:00 2001 From: Jeremias Maerki Date: Mon, 14 Nov 2005 14:20:54 +0000 Subject: Automated parameter rename failed because there was an instance variable called "e" which caused an NPE in examples/fo/build.xml on target "newPDF". git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@344125 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/fop/svg/PDFImageElementBridge.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/java/org/apache/fop/svg/PDFImageElementBridge.java b/src/java/org/apache/fop/svg/PDFImageElementBridge.java index ca908db48..be69185a8 100644 --- a/src/java/org/apache/fop/svg/PDFImageElementBridge.java +++ b/src/java/org/apache/fop/svg/PDFImageElementBridge.java @@ -77,9 +77,9 @@ public class PDFImageElementBridge extends SVGImageElementBridge { (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 @@ public class PDFImageElementBridge extends SVGImageElementBridge { // 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); } /** -- cgit v1.2.3