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 tk...@apache.org on 2001/05/08 21:34:38 UTC

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

tkormann    01/05/08 12:34:37

  Modified:    sources/org/apache/batik/bridge SVGUseElementBridge.java
  Log:
  bug fix: the URI specified on CSS property (such as filter, mask, clipPath...)
  on a <use> is not de-referenced anymore (considered as a local resource - which
  is the case).
  
  Revision  Changes    Path
  1.10      +3 -4      xml-batik/sources/org/apache/batik/bridge/SVGUseElementBridge.java
  
  Index: SVGUseElementBridge.java
  ===================================================================
  RCS file: /home/cvs/xml-batik/sources/org/apache/batik/bridge/SVGUseElementBridge.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- SVGUseElementBridge.java	2001/05/02 14:34:19	1.9
  +++ SVGUseElementBridge.java	2001/05/08 19:34:31	1.10
  @@ -32,7 +32,7 @@
    * Bridge class for the &lt;use> element.
    *
    * @author <a href="mailto:tkormann@apache.org">Thierry Kormann</a>
  - * @version $Id: SVGUseElementBridge.java,v 1.9 2001/05/02 14:34:19 tkormann Exp $
  + * @version $Id: SVGUseElementBridge.java,v 1.10 2001/05/08 19:34:31 tkormann Exp $
    */
   public class SVGUseElementBridge extends AbstractSVGBridge
       implements GraphicsNodeBridge, ErrorConstants {
  @@ -154,11 +154,10 @@
           // references we have to update
           ViewCSS viewCSS = (ViewCSS)document.getDefaultView();
           CSSOMReadOnlyStyleDeclaration decl =
  -            (CSSOMReadOnlyStyleDeclaration)(viewCSS).getComputedStyle(g, null);
  +            (CSSOMReadOnlyStyleDeclaration)(viewCSS).getComputedStyle(localRefElement, null);
           try {
               CSSUtilities.updateURIs(decl, refDocument.getURLObject());
  -        } catch (MalformedURLException ex) {
  -        }
  +        } catch (MalformedURLException ex) { }
   
           // compute URIs and style sheets for external reference
           if (!isLocal) {
  
  
  

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