MRchildNEO / svgweb

Automatically exported from code.google.com/p/svgweb
Other
0 stars 0 forks source link

Nested patterns don't appear to work. #647

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create a SVG file with a <pattern> tag which refers to another <pattern> 
(See attached SVG files, produced using Inkscape)
2. Compare results in another SVG viewer and svgweb.

What is the expected output? What do you see instead?
When the 'indirected' <pattern> is included, the shape which uses the pattern 
is shown unfilled.

When removing the 'indirected' <pattern> tag, so that the <rect> directly 
references the pattern definition, the pattern is shown correctly.

SUGGESTED PATCH:
Making 'SVGPatternNode.beginPatternFill' reference targetPattern rather than 
'this' would seem to fix the issue (see attached .patch file), but this may 
have some unknown unintended side-effects.

Original issue reported on code.google.com by richbarb...@gmail.com on 16 Aug 2012 at 3:31

Attachments: