xmlgraphics-batik-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tkorm...@apache.org
Subject cvs commit: xml-batik/sources/org/apache/batik/transcoder/image ImageTranscoder.java
Date Mon, 04 Mar 2002 08:38:43 GMT
tkormann    02/03/04 00:38:43

  Modified:    sources/org/apache/batik/transcoder/image
                        ImageTranscoder.java
  Log:
  bug fix for 1.4 (g2d.dispose() was put at the wrong place)
  
  Revision  Changes    Path
  1.35      +2 -2      xml-batik/sources/org/apache/batik/transcoder/image/ImageTranscoder.java
  
  Index: ImageTranscoder.java
  ===================================================================
  RCS file: /home/cvs/xml-batik/sources/org/apache/batik/transcoder/image/ImageTranscoder.java,v
  retrieving revision 1.34
  retrieving revision 1.35
  diff -u -r1.34 -r1.35
  --- ImageTranscoder.java	18 Feb 2002 11:03:20 -0000	1.34
  +++ ImageTranscoder.java	4 Mar 2002 08:38:43 -0000	1.35
  @@ -100,7 +100,7 @@
    * millimeter conversion factor.
    *
    * @author <a href="mailto:Thierry.Kormann@sophia.inria.fr">Thierry Kormann</a>
  - * @version $Id: ImageTranscoder.java,v 1.34 2002/02/18 11:03:20 hillion Exp $
  + * @version $Id: ImageTranscoder.java,v 1.35 2002/03/04 08:38:43 tkormann Exp $
    */
   public abstract class ImageTranscoder extends XMLAbstractTranscoder {
   
  @@ -258,11 +258,11 @@
                   g2d.setComposite(AlphaComposite.SrcOver);
                   g2d.setPaint(bgcolor);
                   g2d.fillRect(0, 0, w, h);
  -                g2d.dispose();
               }
               if (rend != null) { // might be null if the svg document is empty
                   g2d.drawRenderedImage(rend, new AffineTransform());
               }
  +            g2d.dispose();
               rend = null; // We're done with it...
               writeImage(dest, output);
           } catch (Exception ex) {
  
  
  

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


Mime
View raw message