From: Keiron Liddle Date: Thu, 7 Jun 2001 10:08:42 +0000 (+0000) Subject: fixes a line colouring problem X-Git-Tag: PRE_CODEFORMATTING~101 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=e8157f45663ee5181be3ce907f694dbe8585b762;p=xmlgraphics-fop.git fixes a line colouring problem git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194278 13f79535-47bb-0310-9956-ffa450edef68 --- 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(); }