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/gvt AbstractGraphicsNode.java
Date Wed, 12 Jun 2002 15:19:53 GMT
tkormann    2002/06/12 08:19:53

  Modified:    sources/org/apache/batik/gvt AbstractGraphicsNode.java
  Log:
  fix bug in intersects
  
  Revision  Changes    Path
  1.43      +6 -2      xml-batik/sources/org/apache/batik/gvt/AbstractGraphicsNode.java
  
  Index: AbstractGraphicsNode.java
  ===================================================================
  RCS file: /home/cvs/xml-batik/sources/org/apache/batik/gvt/AbstractGraphicsNode.java,v
  retrieving revision 1.42
  retrieving revision 1.43
  diff -u -r1.42 -r1.43
  --- AbstractGraphicsNode.java	29 May 2002 22:38:03 -0000	1.42
  +++ AbstractGraphicsNode.java	12 Jun 2002 15:19:53 -0000	1.43
  @@ -878,7 +878,11 @@
        * @param r the specified Rectangle2D in the user node space
        */
       public boolean intersects(Rectangle2D r) {
  -        return getBounds().intersects(r);
  +        if (getBounds() != null ){
  +            return getBounds().intersects(r);
  +        } else {
  +            return false;
  +        }
       }
   
       /**
  
  
  

---------------------------------------------------------------------
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