Comment 10 for bug 1318657

Revision history for this message
David Mathog (mathog) wrote :

I think the applied patch finally resolves this issue. Please test - I don't want to commit it until at least one other developer has tried to break it.

The issue described in the previous post turned out not to be a problem because something upstream was already making a duplicate of the clipboard and passing that in.

With the current code an SVG that contains duplicated gradients/swatches in defs will have these reduced to a single instance if the diagram is cut/paste or if it is imported. However, they will still both be there if the file is just "opened", as that does not go through "importDefs()" which is the routine that cleans these up. Also, any definitions that should have been in "defs", but were not, will not receive any special processing. So if one of those is a duplicate, it will pass through as a duplicate.

Tested with revision 13400 on linux only.