lib/prawn/svg/parser.rb in prawn-svg-0.9.1.9 vs lib/prawn/svg/parser.rb in prawn-svg-0.9.1.10
- old
+ new
@@ -101,10 +101,10 @@
when 'polygon'
points = attrs['points'].split(/\s+/).collect do |point|
x, y = point.split(",")
[x(x), y(y)]
end
- element.add_call "polygon", points
+ element.add_call "polygon", *points
when 'circle'
element.add_call "circle_at",
[x(attrs['cx'] || "0"), y(attrs['cy'] || "0")], :radius => distance(attrs['r'])