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:[EMAIL PROTECTED]";>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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to