https://bugs.kde.org/show_bug.cgi?id=381428
Mikael Rosbacke <mikael.rosba...@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #107748|0 |1 is obsolete| | --- Comment #6 from Mikael Rosbacke <mikael.rosba...@gmail.com> --- Created attachment 107771 --> https://bugs.kde.org/attachment.cgi?id=107771&action=edit Attempt to partially fix the use element. Thought a bit more. In general I think use elements can refer to any other element in the svg, but in practice often it refers within the same group, just a bit later. In this case the context for the element is still the same on the context stack. I've implemented separate storage that stores 'use' elements for the duration of their current group. For each new element scanned, this store is checked and 'use' elements are processed as their resources show up. Also some small fixes to remove error logs that doesn't seem like errors. With this code, at least the first image can be read without losing 'use' elements. I get one lost element but inspecting that file shows that it is truly missing. But I havn't been able to actually look at the read data. Feel free to apply, or use as an inspiration for a proper solution. / MR -- You are receiving this mail because: You are watching all bug changes.