Duplicate ids under <defs>
Duplicate ids under <defs>
When showing more than one SVG document on the same page the shared resources under <defs> have duplicate ids. This is especially problematic with clip refs. We need a method to set a prefix that will be used when creating ids for clips and paints.
Re: Duplicate ids under <defs>
This could also be handled automatically by default, while providing the ability to set a custom prefix. When testing a fix for this myself I used the system time as the prefix.
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
Re: Duplicate ids under <defs>
Hi,
I came across this issue already and added this method in the 1.9 release:
http://www.jfree.org/jfreesvg/javadoc/o ... ng.String)
…but I did not think of auto-populating the prefix, that's a very good idea (I will add that for the 2.0 release).
I came across this issue already and added this method in the 1.9 release:
http://www.jfree.org/jfreesvg/javadoc/o ... ng.String)
…but I did not think of auto-populating the prefix, that's a very good idea (I will add that for the 2.0 release).
David Gilbert
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
Re: Duplicate ids under <defs>
Awesome, thanks David. I need to pay closer attention to the change log in the future.
Thanks again for this fantastic tool.
Thanks again for this fantastic tool.