From: Adrian Cumiskey Date: Sun, 26 Jul 2009 10:13:37 +0000 (+0000) Subject: Fixes GUMP build problems, the automated e-mail was starting to annoy so I scratched... X-Git-Tag: fop-1_0~209 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=c29f2ba1ecada01d680ff1ce9ce76898243681f0;p=xmlgraphics-fop.git Fixes GUMP build problems, the automated e-mail was starting to annoy so I scratched an itch :). * Updated xmlgraphics-commons to trunk version. * Fixed ImageRendered constructor call in PDFGraphics2D and AFPGraphics2D to be compatible with the new parameter that has been added in xmlgraphics-commons. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@797899 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/lib/xmlgraphics-commons-1.4svn.jar b/lib/xmlgraphics-commons-1.4svn.jar index 9e88ef4e2..fc9ce636b 100644 Binary files a/lib/xmlgraphics-commons-1.4svn.jar and b/lib/xmlgraphics-commons-1.4svn.jar differ diff --git a/src/java/org/apache/fop/afp/AFPGraphics2D.java b/src/java/org/apache/fop/afp/AFPGraphics2D.java index 2e176e5ab..5aa7a47ef 100644 --- a/src/java/org/apache/fop/afp/AFPGraphics2D.java +++ b/src/java/org/apache/fop/afp/AFPGraphics2D.java @@ -548,7 +548,7 @@ public class AFPGraphics2D extends AbstractGraphics2D implements NativeImageHand ImageSize size = new ImageSize(img.getWidth(), img.getHeight(), 72); imageInfo.setSize(size); - ImageRendered imageRendered = new ImageRendered(imageInfo, img, null); + ImageRendered imageRendered = new ImageRendered(imageInfo, img, null, null); RenderedImage renderedImage = imageRendered.getRenderedImage(); // create image object info diff --git a/src/java/org/apache/fop/svg/PDFGraphics2D.java b/src/java/org/apache/fop/svg/PDFGraphics2D.java index c5da8af6f..d81a9aab1 100644 --- a/src/java/org/apache/fop/svg/PDFGraphics2D.java +++ b/src/java/org/apache/fop/svg/PDFGraphics2D.java @@ -1259,7 +1259,7 @@ public class PDFGraphics2D extends AbstractGraphics2D implements NativeImageHand ImageInfo info = new ImageInfo(null, "image/unknown"); ImageSize size = new ImageSize(img.getWidth(), img.getHeight(), 72); info.setSize(size); - ImageRendered imgRend = new ImageRendered(info, img, null); + ImageRendered imgRend = new ImageRendered(info, img, null, null); ImageRenderedAdapter adapter = new ImageRenderedAdapter(imgRend, key); PDFXObject xObject = pdfDoc.addImage(resourceContext, adapter); flushPDFDocument();