Package: tunnelx Version: 20160713-3 Severity: normal Tags: patch In saved SVG images, estimated walls appear identical to actual walls. No dash pattern is being applied to the stroke. I've made a patch that fixes it - tested by exporting SVG and viewing in Iceweasel - and it's probably suitable for forwarding upstream.
Index: tunnelx-20160713/src/SvgGraphics2D.java =================================================================== --- tunnelx-20160713.orig/src/SvgGraphics2D.java +++ tunnelx-20160713/src/SvgGraphics2D.java @@ -168,6 +168,7 @@ public class SvgGraphics2D extends Graph { BasicStroke bs = (BasicStroke)s; myPST.strokewidth = bs.getLineWidth(); + myPST.dashpattern = bs.getDashArray(); } public void setFont(Font f) { @@ -279,6 +280,7 @@ class SvgPathStyleTracker public float calpha; public float strokewidth; public Font currfont; + public float[] dashpattern; private List<String> stylestack; @@ -294,7 +296,18 @@ class SvgPathStyleTracker String stringifyOutline() { - return String.format("stroke: %s; stroke-width: %.1fpx; stroke-linecap: round; fill: none", crgb, strokewidth); + StringBuffer s = new StringBuffer(); + s.append(String.format("stroke: %s; stroke-width: %.1fpx; stroke-linecap: round; fill: none;", crgb, strokewidth)); + if (dashpattern != null) { + s.append(" stroke-dasharray:"); + char sep = ' '; + for (int i = 0; i < dashpattern.length; ++i) { + s.append(sep).append(dashpattern[i]); + sep = ','; + } + s.append(';'); + } + return s.toString(); } String stringifyText()
-- System Information: Debian Release: 9.0 APT prefers testing APT policy: (900, 'testing'), (900, 'stable'), (400, 'unstable') Architecture: amd64 (x86_64) Foreign Architectures: i386, armel Kernel: Linux 3.16.7-ckt2-balti (SMP w/8 CPU cores; PREEMPT) Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: sysvinit (via /sbin/init) Versions of packages tunnelx depends on: ii default-jre [java8-runtime] 2:1.8-58 ii gcj-4.8-jre [java5-runtime] 4.8.5-4 ii jarwrapper 0.59 ii openjdk-8-jre [java8-runtime] 8u111-b14-3 tunnelx recommends no packages. tunnelx suggests no packages. -- no debconf information