Comment 6 for bug 209296

Revision history for this message
sas (sas-sas) wrote : Re: SVG Import failes via drag n' drop

In fact, it's only at the top level (children of the root element) that 'defs' elements are ignored. A 'defs' element further down the tree will be imported (though in a different manner than the first top-level one).

Here's a patch to stop Inkscape ignoring top-level 'defs' elements when importing. With this patch, all top-level 'defs' elements are handled in the same way as the first one is currently handled, and both test files therefore import correctly (via drag-and-drop or File->Import).

Howeover, there are still many problems with SVG import, and the whole concept really needs to be properly thought out. The current implementation makes no attempt to deal with any of the difficult issues, and my patch doesn't change that.