Skip to content

Commit 21403a3

Browse files
committed
startSVGElementHandler : Fixed a problem with the path tag when the d attribute is missing.
1 parent ffaa04d commit 21403a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rbpdf.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18188,7 +18188,7 @@ def startSVGElementHandler(name, attribs, clipping = false)
1818818188
opacity = svgstyle['stop-opacity'] ? svgstyle['stop-opacity'].to_f : 1
1818918189
@svggradients[@svggradientid]['stops'] << {'offset' => offset, 'color' => stop_color, 'opacity' => opacity}
1819018190
when 'path' # paths
18191-
d = attribs['d'].strip
18191+
d = attribs['d'].to_s.strip
1819218192
if clipping
1819318193
svg_transform(tm)
1819418194
svg_path(d, 'CNZ')

0 commit comments

Comments
 (0)