Layer changes are not always properly saved
Steps to reproduce:
- open Inkscape
- draw an object on the default layer (Layer 1)
- create a new layer
- drag the object from Layer 1 to the new layer using the Objects pane
- the object may jump back to the Layer 1 several times
- drag/drop till the object is on the new layer
- the objects seems to be on the new layer
- save the svg
- close and reopen the SVG
What happened?
- the object is again on Layer 1
What should have happened?
- the object should appear on the new layer
I've found out how to fix that. Edit the SVG file in an editor of your choice. Search for the newly created layer and modify the XML tag to have a dedicated closing tag. Instead of
<g
inkscape:label="Layer 2"
id="layer2"
inkscape:groupmode="layer" />
write it as
<g
inkscape:label="Layer 2"
id="layer2"
inkscape:groupmode="layer">
</g>
AND now move at least one existing object into the content of that tag.
<g
inkscape:label="Layer 2"
id="layer2"
inkscape:groupmode="layer">
<path
inkscape:connector-curvature="0"
id="path10"
d="M 49.892857,61.988093 47.624999,106.58928 89.202381,108.10119 78.619047,61.988093 52.916666,60.47619 Z"
style="fill:none;stroke:#000000;stroke-width:0.264583px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
</g>
Save the svg and reopen it in Inkscape. Now the changes to the new layer are saved properly.
Inkscape Version and Operating System:
- Inkscape Version: 1.0beta2 (1c3732b, 2019-12-09) and Inkscape 0.92.4 (5da689c313, 2019-01-14) as well
- Operating System: Windows
- Operating System version: Windows 10 Version - 10.0.18363 Build 18363
Edited by Markus Fischbacher