Skip to content

Commit 55b39b8

Browse files
committed
startSVGElementHandler : Fixed a problem with the path tag when the d attribute is missing.
1 parent d2dc147 commit 55b39b8

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
@@ -18182,7 +18182,7 @@ def startSVGElementHandler(name, attribs, clipping = false)
1818218182
opacity = svgstyle['stop-opacity'] ? svgstyle['stop-opacity'].to_f : 1
1818318183
@svggradients[@svggradientid]['stops'] << {'offset' => offset, 'color' => stop_color, 'opacity' => opacity}
1818418184
when 'path' # paths
18185-
d = attribs['d'].strip
18185+
d = attribs['d'].to_s.strip
1818618186
if clipping
1818718187
svg_transform(tm)
1818818188
svg_path(d, 'CNZ')

0 commit comments

Comments
 (0)