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 bu...@apache.org on 2005/06/03 15:05:53 UTC
DO NOT REPLY [Bug 35202] New: -
SVGGraphics2D.stream(*) corrupts created document.
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: batik-dev@xml.apache.org
ReportedBy: chaker_nakhli@yahoo.com
CC: nakhli@users.sourceforge.net
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: batik-dev-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-dev-help@xmlgraphics.apache.org