Howdy, the following svg throws a null pointer during load.. I'm running the latest cvs version (day or two old). It works fine in the adobe svg and mixing percentages and exact units works fine for <line>s.
Cheers Andrew <?xml version="1.0" standalone="no"?> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN" "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd"> <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="297mm" height="210mm" viewBox="0 0 297 210"> <title>Question Template</title> <defs> <g id="arrow" stroke-linecap="round" class="folding" transform="scale(0.4)"> <line x1="0" y1="0" x2="0" y2="10"/> <line x1="0" y1="0" x2="-3.3" y2="3.3"/> <line x1="0" y1="0" x2="3.3" y2="3.3"/> </g> </defs> <line x1="0" y1="145" x2="297" y2="145" class="folding" stroke-width="1" stroke-dasharray="1, 2"/> <use x="25%" y="147" xlink:href="#arrow"/> </svg> Stack trace... java.lang.NullPointerException at org.apache.batik.bridge.UnitProcessor$DefaultContext.getViewportWidth(Unknown Source) at org.apache.batik.util.UnitProcessor.percentagesToPixels(Unknown Source) at org.apache.batik.util.UnitProcessor.svgToUserSpace(Unknown Source) at org.apache.batik.util.UnitProcessor.svgToUserSpace(Unknown Source) at org.apache.batik.bridge.UnitProcessor.svgToUserSpace(Unknown Source) at org.apache.batik.bridge.UnitProcessor.svgHorizontalCoordinateToUserSpace(Unknown Source) at org.apache.batik.bridge.SVGUseElementBridge.computeTransform(Unknown Source) at org.apache.batik.bridge.SVGUseElementBridge.createGraphicsNode(Unknown Source) at org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(Unknown Source) at org.apache.batik.bridge.GVTBuilder.buildComposite(Unknown Source) at org.apache.batik.bridge.GVTBuilder.build(Unknown Source) at org.apache.batik.swing.svg.GVTTreeBuilder.run(Unknown Source) --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
