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 ns...@apache.org on 2002/09/25 18:36:40 UTC

cvs commit: xml-batik/sources/org/apache/batik/bridge SVGGElementBridge.java

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