You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-dev@xmlgraphics.apache.org by cj...@apache.org on 2001/04/04 15:10:02 UTC

cvs commit: xml-batik/sources/org/apache/batik/svggen SVGPaint.java

cjolif      01/04/04 06:10:02

  Modified:    sources/org/apache/batik/svggen SVGPaint.java
  Log:
  fix a bug
  
  Revision  Changes    Path
  1.5       +2 -2      xml-batik/sources/org/apache/batik/svggen/SVGPaint.java
  
  Index: SVGPaint.java
  ===================================================================
  RCS file: /home/cvs/xml-batik/sources/org/apache/batik/svggen/SVGPaint.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- SVGPaint.java	2001/04/02 15:48:08	1.4
  +++ SVGPaint.java	2001/04/04 13:10:02	1.5
  @@ -34,7 +34,7 @@
    *
    * @author <a href="mailto:cjolif@ilog.fr">Christophe Jolif</a>
    * @author <a href="mailto:vincent.hardy@eng.sun.com">Vincent Hardy</a>
  - * @version $Id: SVGPaint.java,v 1.4 2001/04/02 15:48:08 cjolif Exp $
  + * @version $Id: SVGPaint.java,v 1.5 2001/04/04 13:10:02 cjolif Exp $
    * @see              org.apache.batik.svggen.SVGLinearGradient
    * @see              org.apache.batik.svggen.SVGTexturePaint
    */
  @@ -126,7 +126,7 @@
           // want to override the way a Paint is managed!
           SVGPaintDescriptor paintDesc = svgCustomPaint.toSVG(paint);
   
  -        if (paint == null) {
  +        if (paintDesc == null) {
               if (paint instanceof Color)
                   paintDesc = svgColor.toSVG((Color)paint);
               else if (paint instanceof GradientPaint)
  
  
  

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