Import Inkscape SVG loses layer and sub-layer information
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
Triaged
|
Wishlist
|
Unassigned |
Bug Description
When importing an SVG created in Inkscape with several layers and sub-layers, some layer information is lost upon ungrouping the import, but no objects are lost.
Usually, any layer without objects in them will simply disappear, though occasionally entire layers will disappear with the objects from those layers being merged into the master import layer (e.g. into the gNNNN layer).
Steps to reproduce:
Notes: Ignore the broken images in the SVG, they are simply there because images existed in my original SVG.
- Use the attached image by opening in Inkscape
- Create a new layer for re-importing, I generally made it above "Reference"
- Import the same test SVG into the image under the new layer
- Note the layers are properly sorted under their parents "Head," "Body," etc...
- Without deselecting, click the "Ungroup selected objects" button twice
- The parent layers ("Head," "Body," etc.) should now be missing
I have been able to reproduce this on win32 - Vista Ultimate 64bit and OSX - 10.5.8 (PPC)
tags: | added: importing layers svg |
Reproduced with Inkscape 0.47 on OS X 10.5.8
workround:
1) after import, un-group only once
2) open XML Editor
3) in the nodes list select the layer that was active when importing the SVG file
4) in the main window un-group the now selected layer
Result: layers of the imported SVG file are now -as expected- on the same top level. In this example (self-import) they duplicate the existing layer structure including all sub-layers.
All (existing and imported) layers are listed and selectable in the 'Layers…' dialog.
Note: the new top-level layers loose the attribute 'inkscape: groupmode= "layer" ', whereas all of their sub-layers do keep it after importing and un-grouping.