From 5489f7f496cae919ad83a44af3779a47373efa06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Sat, 10 Nov 2012 11:20:25 -0800 Subject: [PATCH] Switch back to using allowNull for gradient highlight, now that it works. --- src/svg/SvgImport.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/svg/SvgImport.js b/src/svg/SvgImport.js index a710755d..ed98ab7e 100644 --- a/src/svg/SvgImport.js +++ b/src/svg/SvgImport.js @@ -236,9 +236,7 @@ new function() { gradient.type = 'radial'; origin = getPoint(svg, 'cx', 'cy'); destination = origin.add(getValue(svg, 'r'), 0); - highlight = getPoint(svg, 'fx', 'fy'); - if (highlight.isZero()) - highlight = null; + highlight = getPoint(svg, 'fx', 'fy', true); } else { origin = getPoint(svg, 'x1', 'y1'); destination = getPoint(svg, 'x2', 'y2');