keiron      01/06/07 03:08:46

  Modified:    src/org/apache/fop/svg PDFGraphics2D.java
  Log:
  fixes a line colouring problem
  
  Revision  Changes    Path
  1.6       +5 -8      xml-fop/src/org/apache/fop/svg/PDFGraphics2D.java
  
  Index: PDFGraphics2D.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/svg/PDFGraphics2D.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- PDFGraphics2D.java        2001/05/23 15:49:35     1.5
  +++ PDFGraphics2D.java        2001/06/07 10:08:42     1.6
  @@ -1,4 +1,4 @@
  -/* $Id: PDFGraphics2D.java,v 1.5 2001/05/23 15:49:35 keiron Exp $
  +/* $Id: PDFGraphics2D.java,v 1.6 2001/06/07 10:08:42 keiron Exp $
    * Copyright (C) 2001 The Apache Software Foundation. All rights reserved.
    * For details on use and redistribution please refer to the
    * LICENSE file included with these sources."
  @@ -38,7 +38,7 @@
    * implementing a <tt>Graphic2D</tt> piece-meal.
    *
    * @author <a href="mailto:[EMAIL PROTECTED]";>Keiron Liddle</a>
  - * @version $Id: PDFGraphics2D.java,v 1.5 2001/05/23 15:49:35 keiron Exp $
  + * @version $Id: PDFGraphics2D.java,v 1.6 2001/06/07 10:08:42 keiron Exp $
    * @see org.apache.batik.ext.awt.g2d.AbstractGraphics2D
    */
   public class PDFGraphics2D extends AbstractGraphics2D {
  @@ -140,7 +140,7 @@
        */
       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 @@
                        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 @@
        * <code>Graphics2D</code>.
        */
       public GraphicsConfiguration getDeviceConfiguration() {
  -        System.out.println("getDeviceConviguration");
  +        //System.out.println("getDeviceConviguration");
           return GraphicsEnvironment.getLocalGraphicsEnvironment().
                  getDefaultScreenDevice().getDefaultConfiguration();
       }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to