You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-commits@xmlgraphics.apache.org by ke...@apache.org on 2001/08/09 15:29:31 UTC

cvs commit: xml-fop/src/org/apache/fop/svg PDFGraphics2D.java

keiron      01/08/09 06:29:31

  Modified:    src/org/apache/fop/svg PDFGraphics2D.java
  Log:
  fixes error that is displayed in new acrobat reader
  
  Revision  Changes    Path
  1.13      +4 -3      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.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- PDFGraphics2D.java	2001/07/30 20:29:34	1.12
  +++ PDFGraphics2D.java	2001/08/09 13:29:31	1.13
  @@ -1,5 +1,5 @@
   /*
  - * $Id: PDFGraphics2D.java,v 1.12 2001/07/30 20:29:34 tore Exp $
  + * $Id: PDFGraphics2D.java,v 1.13 2001/08/09 13:29:31 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.
  @@ -40,7 +40,7 @@
    * implementing a <tt>Graphic2D</tt> piece-meal.
    *
    * @author <a href="mailto:keiron@aftexsw.com">Keiron Liddle</a>
  - * @version $Id: PDFGraphics2D.java,v 1.12 2001/07/30 20:29:34 tore Exp $
  + * @version $Id: PDFGraphics2D.java,v 1.13 2001/08/09 13:29:31 keiron Exp $
    * @see org.apache.batik.ext.awt.g2d.AbstractGraphics2D
    */
   public class PDFGraphics2D extends AbstractGraphics2D {
  @@ -747,7 +747,6 @@
        */
       public void drawString(String s, float x, float y) {
           // System.out.println("drawString(String)");
  -        currentStream.write("BT\n");
   
           Shape imclip = getClip();
           writeClip(imclip);
  @@ -755,6 +754,8 @@
           applyColor(c, true);
           c = getBackground();
           applyColor(c, false);
  +
  +        currentStream.write("BT\n");
   
           Font gFont = getFont();
           String name = gFont.getName();
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-cvs-help@xml.apache.org