From e8157f45663ee5181be3ce907f694dbe8585b762 Mon Sep 17 00:00:00 2001 From: Keiron Liddle Date: Thu, 7 Jun 2001 10:08:42 +0000 Subject: [PATCH] fixes a line colouring problem git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194278 13f79535-47bb-0310-9956-ffa450edef68 --- src/org/apache/fop/svg/PDFGraphics2D.java | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/org/apache/fop/svg/PDFGraphics2D.java b/src/org/apache/fop/svg/PDFGraphics2D.java index be2e16c40..558d80688 100644 --- a/src/org/apache/fop/svg/PDFGraphics2D.java +++ b/src/org/apache/fop/svg/PDFGraphics2D.java @@ -140,7 +140,7 @@ public class PDFGraphics2D extends AbstractGraphics2D { */ public boolean drawImage(Image img, int x, int y, ImageObserver observer) { - System.err.println("drawImage:x, y"); + //System.err.println("drawImage:x, y"); final int width = img.getWidth(observer); final int height = img.getHeight(observer); @@ -414,10 +414,7 @@ public class PDFGraphics2D extends AbstractGraphics2D { writeClip(imclip); Color c = getColor(); currentColour = new PDFColor(c.getRed(), c.getGreen(), c.getBlue()); - currentStream.write(currentColour.getColorSpaceOut(true)); - c = getBackground(); - PDFColor col = new PDFColor(c.getRed(), c.getGreen(), c.getBlue()); - currentStream.write(col.getColorSpaceOut(false)); + currentStream.write(currentColour.getColorSpaceOut(false)); PDFNumber pdfNumber = new PDFNumber(); @@ -869,7 +866,7 @@ public class PDFGraphics2D extends AbstractGraphics2D { * Graphics2D. */ public GraphicsConfiguration getDeviceConfiguration() { - System.out.println("getDeviceConviguration"); + //System.out.println("getDeviceConviguration"); return GraphicsEnvironment.getLocalGraphicsEnvironment(). getDefaultScreenDevice().getDefaultConfiguration(); } -- 2.39.5