[patch] improved SVG import
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
Fix Released
|
Medium
|
Rygle |
Bug Description
Here's a patch that makes a few improvements to SVG import:
* 'style' elements at the top level are not lost on import (fixes bug 196898)
* the contents of top-level 'defs' elements are not lost on import, even if there's more than one such 'defs' element (fixes bug 209296)
* layers are unlocked when they are converted to ordinary groups (fixes bug 221888)
The existing code has some code duplication, because the case where imported objects need to be put in a new group and the case where a new group isn't needed are handled in separate loops. In order to avoid increasing the amount of code duplication even further (by putting more stuff in the loops), I've refactored this into a single loop that works slightly differently in the two cases.
Will check this soon sas.