--- SvgExporterPG-orig.js 2011-09-15 23:11:40.000000000 +0200 +++ SvgExporterPG.js 2011-09-26 12:30:15.179224124 +0200 @@ -385,19 +385,18 @@ } if (!continuous) { //p.scale(this.getPatternFactor()); - p.scale(1/this.scale); + //p.scale(1/this.scale); var num = p.getNumDashes(); - var str = ""; + var str = []; for ( var i = 0; i < num; ++i) { var len = Math.abs(p.getDashLengthAt(i)); + // double gaps to account for round linecap + if (p.getDashLengthAt(i) < 0) { len *= 2; } // see FS#192: //len = this.convert(len); - str += "" + len; - if (i < num - 1) { - str += ","; - } + str.push(len); } - additionalStyles += "stroke-dasharray:" + str; + additionalStyles += "stroke-dasharray:" + str.join(","); // does more harm than good // if (isShape(this.shape)) {