Svg Importer: fix handling of highlight point of radial gradients.

This commit is contained in:
Jonathan Puckey 2012-11-10 16:20:59 +01:00
parent a86340c088
commit 116e782f33

View file

@ -231,7 +231,9 @@ new function() {
gradient.type = 'radial';
origin = getPoint(svg, 'cx', 'cy');
destination = origin.add(getValue(svg, 'r'), 0);
highlight = getPoint(svg, 'fx', 'fy', true);
highlight = getPoint(svg, 'fx', 'fy');
if (highlight.isZero())
highlight = null;
} else {
origin = getPoint(svg, 'x1', 'y1');
destination = getPoint(svg, 'x2', 'y2');