[med-svn] [cgview] 01/01: Fix SVGGraphics2D call

Andreas Tille tille at debian.org
Fri Nov 27 17:02:05 UTC 2015


This is an automated email from the git hooks/post-receive script.

tille pushed a commit to branch master
in repository cgview.

commit 10ded7c66ef8bbec3224abbacccffb017ceca5e1
Author: Andreas Tille <tille at debian.org>
Date:   Fri Nov 27 18:01:10 2015 +0100

    Fix SVGGraphics2D call
---
 .../fix_batic-svggen_SVGGraphics2D_call.patch      | 30 ++++++++++++++++++++++
 debian/patches/series                              |  1 +
 2 files changed, 31 insertions(+)

diff --git a/debian/patches/fix_batic-svggen_SVGGraphics2D_call.patch b/debian/patches/fix_batic-svggen_SVGGraphics2D_call.patch
new file mode 100644
index 0000000..f6cdb01
--- /dev/null
+++ b/debian/patches/fix_batic-svggen_SVGGraphics2D_call.patch
@@ -0,0 +1,30 @@
+Author: Andreas Tille <tille at debian.org>
+Last-Update: Fri, 27 Nov 2015 09:31:44 +0100
+Description: Fix wrong interface usage
+ According to https://xmlgraphics.apache.org/batik/javadoc/org/apache/batik/svggen/SVGGraphics2D.html
+ stream can be called with different arguments.  The closest call to the one
+ below needs an additional argument
+   escaped - defines if the characters will be escaped style properties as opposed to plain attributes. 
+ Hope that false makes sense here!
+
+
+--- a/src/ca/ualberta/stothard/cgview/CgviewIO.java
++++ b/src/ca/ualberta/stothard/cgview/CgviewIO.java
+@@ -301,7 +301,7 @@ public class CgviewIO implements CgviewC
+                 GZIPOutputStream gzipOut = new GZIPOutputStream(fileOutputStream);
+                 Writer out = new OutputStreamWriter(gzipOut, "UTF-8");
+                 //graphics2D.stream(out, useCSS);
+-                graphics2D.stream(root, out, useCSS);
++                graphics2D.stream(root, out, useCSS, false); /* stream requires argument "escaped"; */
+                 out.flush();
+                 gzipOut.flush();
+                 out.close();
+@@ -309,7 +309,7 @@ public class CgviewIO implements CgviewC
+             } else {
+                 Writer out = new OutputStreamWriter(fileOutputStream, "UTF-8");
+                 //graphics2D.stream(out, useCSS);
+-                graphics2D.stream(root, out, useCSS);
++                graphics2D.stream(root, out, useCSS, false); /* stream requires argument "escaped"; */
+                 out.flush();
+                 out.close();
+             }
diff --git a/debian/patches/series b/debian/patches/series
index 7e871a5..43bb5cd 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 manifesto_pointing_to_debian_jars.patch
+fix_batic-svggen_SVGGraphics2D_call.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/cgview.git



More information about the debian-med-commit mailing list