Skip to content

Commit

Permalink
startSVGElementHandler : Fixed a problem with the path tag when the d…
Browse files Browse the repository at this point in the history
… attribute is missing.
  • Loading branch information
naitoh committed Dec 29, 2023
1 parent d2dc147 commit 55b39b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rbpdf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18182,7 +18182,7 @@ def startSVGElementHandler(name, attribs, clipping = false)
opacity = svgstyle['stop-opacity'] ? svgstyle['stop-opacity'].to_f : 1
@svggradients[@svggradientid]['stops'] << {'offset' => offset, 'color' => stop_color, 'opacity' => opacity}
when 'path' # paths
d = attribs['d'].strip
d = attribs['d'].to_s.strip
if clipping
svg_transform(tm)
svg_path(d, 'CNZ')
Expand Down

0 comments on commit 55b39b8

Please sign in to comment.