mental@...32... wrote:
There is a bug in the layers code when loading an SVG document with a single group (g element) and adding layers to it.
In this case, Inkscape will sometimes show "Root" as a layer
This is by design. "Root" shows up as a layer when it has objects in it.
Not always :-/
Take the attached file.
- Open the file - The current layer will be Root - Add a layer a - Open the layers combo. No Root layer anymore despite the fact that there are objects!! - Select the rectangles. Root's back - Select layer a. - Root's gone. - Ungroup the rectangles - Select one of them - Shift-PgDown (move it into layer a) - Hide layer a - Select a different rectangle to get root back - Add layer b - Move an object into this layer. This works ok - Hide layer b - Select another rectangle - Shift-PgDown (move it into layer b) - Shift-PgUp -> Selected layer is root but object is gone. It's still selected but invisible. You can move the handles but when you click anywhere, it's lost.
Status line shows "There is no group above this one".