DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG� RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=35202>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND� INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=35202 Summary: SVGGraphics2D.stream(*) corrupts created document. Product: Batik Version: 1.5 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: SVGGraphics2D AssignedTo: [email protected] ReportedBy: [EMAIL PROTECTED] CC: [EMAIL PROTECTED] The document created with an SVGGraphics2D object is corrupted(becomes empty) after invoking SVGGraphics.stream(*) methods.The document must be explicitly set to root before streaming (using SVGGraphics2D.getRoot(Document ) ) unless it's lost. If this is the correct behavior, please update Javadoc (see bug 31625). Code example: Document doc = ... ; // create a document with a dom implementation SVGGraphics2D svgG2d = new SVGGraphics2D(doc); //render into SVGGraphics2D object svgG2d.setPaint(...); svgG2d.fill(...) .... //stream the created Document, it works fine the first invocation svgG2d.stream(out, true); //out is a Writer //BUG-- spits an empty document. the created document is lost. svgG2d.stream(out,true); remark: To fix this problem, one can add the following code before streaming the document: Element root = doc.getDocumentElement(); svgG2d.getRoot(root); -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
