From dbdf75c998c6506f58d24e8892c225ccae034936 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Tue, 6 Nov 2012 07:31:29 -0800 Subject: [PATCH] Make new drawPath() code actually work. --- src/svg/SvgExporter.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/svg/SvgExporter.js b/src/svg/SvgExporter.js index c1cb661d..a2114138 100644 --- a/src/svg/SvgExporter.js +++ b/src/svg/SvgExporter.js @@ -29,7 +29,7 @@ var SvgExporter = this.SvgExporter = new function() { var formatNumber = Base.formatNumber; function formatPoint(point) { - return formatNumber(point._x) + ',' + formatNumber(point._y); + return formatNumber(point.x) + ',' + formatNumber(point.y); } function setAttributes(svg, attrs) { @@ -203,9 +203,9 @@ var SvgExporter = this.SvgExporter = new function() { } else { // c = relative curveto: handle1, handle2 + end - start, end - start var end = point2.subtract(point1); - parts.push('c' + formatNumber(handle1), - formatNumber(end.add(handle2)), - formatNumber(end)); + parts.push('c' + formatPoint(handle1), + formatPoint(end.add(handle2)), + formatPoint(end)); } }