'rename layer' should be grayed out when on '(root)'

Bug #1321737 reported by rickmastfan67
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Invalid
Low
Unassigned

Bug Description

Inkscape 0.48.4 r9939
Windows 7 x64 SP1

Bug:
Just after importing/linking an image in Inkscape and it's put on the '(root)' layer by default, you are allowed to rename that 'false' layer when you shouldn't be able to.

Steps to reproduce: (steps 1-2 done in Windows, not sure how other OS's do this)
1. Select an image to open/import into Inkscape in File Explorer (png, jpg).
2. Right click on it and 'Open with' in Inkscape.
3. When the option screen shows up to allow you to either 'embed' or 'link' the image in the file, select either. It doesn't matter which you choose, it happens with both options.
4. Once Inkscape is displaying the image you imported, go up to the menu 'Layer' and click 'Rename Layer'.

What happens:
The 'Rename Layer' window shows up allowing you to rename the false '(root)' layer.

What should happen:
Nothing, as the 'Rename Layer' option should be grayed out and prohibit you renaming '(root)' as it's not a true layer and can't be renamed in the first place.

Tags: layers ui
tags: added: layers ui
Revision history for this message
Liam P. White (liampwhite) wrote :

It appears that you can do this with any object.

The document root is in fact given a new name with the "inkscape:label=" attribute. See attached.

Changed in inkscape:
status: New → Confirmed
Revision history for this message
su_v (suv-lp) wrote :

Reproduced with Inkscape 0.47, 0.48.4 r9939, 0.48.x r10031 and 0.48+devel r13395 on OS X 10.7.5.

Changed in inkscape:
importance: Undecided → Low
status: Confirmed → Triaged
Revision history for this message
rickmastfan67 (rickmastfan67) wrote :

Maybe the same thing that is done with the 'Delete Current Layer' option can be done with the 'Rename Layer'. I was just doing some testing and if you attempt to delete '(root)', Inkscape in the status bar says "No current layer.". Maybe that might be the best option for 'Rename Layer'.

Revision history for this message
rickmastfan67 (rickmastfan67) wrote :

Hi - thanks for reporting this bug, I've manually migrated it to Inkscape's new
bug tracker on GitLab, and closed it here.

Please feel free to file new bugs about the issues you're seeing at
http://inkscape.org/report.

Moved to: https://gitlab.com/inkscape/inbox/-/issues/3290
Closed by: https://gitlab.com/rickmastfan67

Changed in inkscape:
status: Triaged → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.