CIip Path ID collision
I've got two different graphs, created in matlab and exported to svg using plot2svg[1]. When I try to import both of them into a single document, some sets of points in the second graphic don't show up. I've tracked the problem down to a clip path id collision. Both files define clip paths with the same ids, so when the second file is imported, its clip path url's point to clip paths from the first file.
Is there any kind of workaround for this sort of thing? Is this a bug? Shouldn't inkscape check IDs to make sure there aren't any collisions when importing files?
1 http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=740...
The current workaround is to open the file in a text editor and replace the colliding ID with something else. The approaches to fixing this are: a) Hack: text search and replace colliding id's. This will be very kludgy because we can't save files to memory. b) Add dependency tracking to SPObjects. This one is quite a lot of work, but it has to be done sooner or later. This was also discussed wrt clipboard, which suffers from the same problem. Regards, Krzysztof (Chris) Kosiński
Jason Merrill-2 wrote:
I've got two different graphs, created in matlab and exported to svg using plot2svg[1]. When I try to import both of them into a single document, some sets of points in the second graphic don't show up. I've tracked the problem down to a clip path id collision. Both files define clip paths with the same ids, so when the second file is imported, its clip path url's point to clip paths from the first file.
Is there any kind of workaround for this sort of thing? Is this a bug? Shouldn't inkscape check IDs to make sure there aren't any collisions when importing files?
1 http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=740...
Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace _______________________________________________ Inkscape-devel mailing list Inkscape-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-devel
participants (2)
-
Jason Merrill
-
Krzysztof Kosiński