when putting some documents together you might end up with more than just one def-section
I don't think we support this at all, unfortunately. Lots of code assumes a single defs at the moment.
Gradients are mor object orientated now, which I really like. going with this, each time I switch to gradient from a solid color, a new gradient is created. This gradient should automatically deleted right away, if I don't do anything exept for switching to a existing gradient. Otherwise I'm kinde forced to do clean up defs and in the worst case I have to create extra objects for the gradients, I want to keep. I hope you understand what I'm saying... seems kinda confusing to me
Yes I know. I tried to make these gradients autocollected, but this crashed the fill&stroke when a gradient is deleted from under it (the deleted one remains in the list and that causes problems, i.e. the list must watch for changes in the gradients and update).