Skip to content

Commit ffaa04d

Browse files
committed
endSVGElementHandler : fix defs mode problem.
1 parent 8abac8c commit ffaa04d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/rbpdf.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18441,10 +18441,14 @@ def endSVGElementHandler(name)
1844118441
when 'clipPath' # clipPath
1844218442
@svgclipmode = false
1844318443
when 'g'
18444+
return if @svgdefsmode
18445+
1844418446
# ungroup: remove last style from array
1844518447
@svgstyles.pop
1844618448
stop_transform()
1844718449
when 'text', 'tspan'
18450+
return if @svgdefsmode
18451+
1844818452
anchor = @svgstyles.last['text-anchor']
1844918453
# print text
1845018454
cell(0, 0, @svgtext.strip, 0, 0, '', 0, '', 0, false, 'L', 'T', anchor)

0 commit comments

Comments
 (0)