| 1 |
Author: Andreas Tille <[email protected]> |
| 2 |
Last-Update: 2015-11-27 |
| 3 |
Description: Fix wrong interface usage |
| 4 |
According to https://xmlgraphics.apache.org/batik/javadoc/org/apache/batik/svggen/SVGGraphics2D.html |
| 5 |
stream can be called with different arguments. The closest call to the one |
| 6 |
below needs an additional argument |
| 7 |
escaped - defines if the characters will be escaped style properties as opposed to plain attributes. |
| 8 |
Hope that false makes sense here! |
| 9 |
|
| 10 |
|
| 11 |
--- a/src/ca/ualberta/stothard/cgview/CgviewIO.java |
| 12 |
+++ b/src/ca/ualberta/stothard/cgview/CgviewIO.java |
| 13 |
@@ -301,7 +301,7 @@ public class CgviewIO implements CgviewC |
| 14 |
GZIPOutputStream gzipOut = new GZIPOutputStream(fileOutputStream); |
| 15 |
Writer out = new OutputStreamWriter(gzipOut, "UTF-8"); |
| 16 |
//graphics2D.stream(out, useCSS); |
| 17 |
|
| 18 |
+ graphics2D.stream(root, out, useCSS, false); /* stream requires argument "escaped"; */ |
| 19 |
out.flush(); |
| 20 |
gzipOut.flush(); |
| 21 |
out.close(); |
| 22 |
@@ -309,7 +309,7 @@ public class CgviewIO implements CgviewC |
| 23 |
} else { |
| 24 |
Writer out = new OutputStreamWriter(fileOutputStream, "UTF-8"); |
| 25 |
//graphics2D.stream(out, useCSS); |
| 26 |
|
| 27 |
+ graphics2D.stream(root, out, useCSS, false); /* stream requires argument "escaped"; */ |
| 28 |
out.flush(); |
| 29 |
out.close(); |
| 30 |
} |