aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremias Maerki <jeremias@apache.org>2005-11-14 14:20:54 +0000
committerJeremias Maerki <jeremias@apache.org>2005-11-14 14:20:54 +0000
commit5d275dd2d63972a2ba9f865b3813f602c163c7f5 (patch)
treecd964298ce8fe705a0e8fa24abe21afe63c139ab
parent0a5202aeefa2fb132e97a69af113b88355697b3a (diff)
downloadxmlgraphics-fop-5d275dd2d63972a2ba9f865b3813f602c163c7f5.tar.gz
xmlgraphics-fop-5d275dd2d63972a2ba9f865b3813f602c163c7f5.zip
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
-rw-r--r--src/java/org/apache/fop/svg/PDFImageElementBridge.java8
1 files 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);
}
/**