[prev in list] [next in list] [prev in thread] [next in thread] 

List:       batik-dev
Subject:    cvs commit: xml-batik/sources/org/apache/batik/bridge SVGGElementBridge.java
From:       nsochele () apache ! org
Date:       2002-09-25 16:36:40
[Download RAW message or body]

nsochele    2002/09/25 09:36:40

  Modified:    sources/org/apache/batik/bridge SVGGElementBridge.java
  Log:
  allow non-element nodes to be added to g and svg elements.
  (bug # 12736)
  
  Revision  Changes    Path
  1.21      +6 -4      xml-batik/sources/org/apache/batik/bridge/SVGGElementBridge.java
  
  Index: SVGGElementBridge.java
  ===================================================================
  RCS file: /home/cvs/xml-batik/sources/org/apache/batik/bridge/SVGGElementBridge.java,v
  retrieving revision 1.20
  retrieving revision 1.21
  diff -u -r1.20 -r1.21
  --- SVGGElementBridge.java	4 Jul 2002 07:19:01 -0000	1.20
  +++ SVGGElementBridge.java	25 Sep 2002 16:36:40 -0000	1.21
  @@ -97,9 +97,11 @@
        * Invoked when an MutationEvent of type 'DOMNodeInserted' is fired.
        */
       public void handleDOMNodeInsertedEvent(MutationEvent evt) {
  -        handleElementAdded((CompositeGraphicsNode)node, 
  -                           e, 
  -                           (Element)evt.getTarget());
  +        if ( evt.getTarget() instanceof Element ){
  +            handleElementAdded((CompositeGraphicsNode)node, 
  +                               e, 
  +                               (Element)evt.getTarget());
  +        }
       }
   
       /**
  
  
  

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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic