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 de...@apache.org on 2002/01/23 15:31:31 UTC

cvs commit: xml-batik/sources/org/apache/batik/gvt AbstractGraphicsNode.java

deweese     02/01/23 06:31:31

  Modified:    sources/org/apache/batik/gvt AbstractGraphicsNode.java
  Log:
  Merged an optimization to invalidateGeometry method.
  
  Revision  Changes    Path
  1.32      +4 -0      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.31
  retrieving revision 1.32
  diff -u -r1.31 -r1.32
  --- AbstractGraphicsNode.java	23 Jan 2002 14:14:08 -0000	1.31
  +++ AbstractGraphicsNode.java	23 Jan 2002 14:31:30 -0000	1.32
  @@ -872,6 +872,10 @@
        * changed.
        */
       protected void invalidateGeometryCache() {
  +        // If our bounds are invalid then our parents bounds
  +        // must be invalid also. So just return.
  +        if (bounds == null) return;
  +
           if (parent != null) {
               ((AbstractGraphicsNode) parent).invalidateGeometryCache();
           }
  
  
  

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