SVG Import: inline variable value.

This commit is contained in:
Jonathan Puckey 2012-11-28 21:40:48 +01:00
parent 808073fa63
commit d45a4ce8ad

View file

@ -405,11 +405,10 @@ new function() {
case 'fill-opacity':
// http://www.w3.org/TR/SVG/painting.html#StrokeOpacityProperty
case 'stroke-opacity':
var opacity = Base.toFloat(value),
color = item[name == 'fill-opacity'
var color = item[name == 'fill-opacity'
? 'getFillColor' : 'getStrokeColor']();
if (color)
color.setAlpha(opacity);
color.setAlpha(Base.toFloat(value));
break;
case 'visibility':
item.setVisible(value === 'visible');