Switch back to using allowNull for gradient highlight, now that it works.

This commit is contained in:
Jürg Lehni 2012-11-10 11:20:25 -08:00
parent d929c3177c
commit 5489f7f496

View file

@ -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');