From adc5b86d2e07fa625994532a77932c7bb459f4ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Wed, 10 Feb 2016 15:34:22 +0100 Subject: [PATCH] SVGExport: Remove unnecessary calls to Point#transform() in exportGradient() --- src/svg/SvgExport.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/svg/SvgExport.js b/src/svg/SvgExport.js index 9dca8f78..7b1e1c3a 100644 --- a/src/svg/SvgExport.js +++ b/src/svg/SvgExport.js @@ -192,15 +192,15 @@ new function() { function exportGradient(color) { // NOTE: As long as the fillTransform attribute is not implemented, // we need to create a separate gradient object for each gradient, - // even when they share the same gradient defintion. + // even when they share the same gradient definition. // http://www.svgopen.org/2011/papers/20-Separating_gradients_from_geometry/ // TODO: Implement gradient merging in SvgImport var gradientNode = getDefinition(color, 'color'); if (!gradientNode) { var gradient = color.getGradient(), radial = gradient._radial, - origin = color.getOrigin().transform(), - destination = color.getDestination().transform(), + origin = color.getOrigin(), + destination = color.getDestination(), attrs; if (radial) { attrs = { @@ -210,7 +210,6 @@ new function() { }; var highlight = color.getHighlight(); if (highlight) { - highlight = highlight.transform(); attrs.fx = highlight.x; attrs.fy = highlight.y; }