Undo layer deletion not possible sometimes on brand new document

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

Bug Description

0.48.2 r9819
Windows 7 x64 RTM

Steps to reproduce:
1. Open brand new instance of Inkscape
2. Layer > Add Layer
3. Name the layer "Layer8686" (just so you can keep track for this bug, the name doesn't matter as any name can be used to reproduce) and make sure it's "Above current" in the "Position" box and then hit "Add".
4. Layer > Delete Current Layer
5. Hit the "Undo" button (or Ctrl+Z) to undo the layer deletion.

What happens:
The "Layer8686" you just deleted doesn't get restored.

What should happen:
The "Layer8686" should be restored when you hit the undo button.

-----

I can also duplicate this in Inkscape 0.48.1-2 on my system.

Tags: layers ui undo
su_v (suv-lp)
tags: added: layers undo
Revision history for this message
su_v (suv-lp) wrote :

Reproduced with Inkscape 0.46 - 0.48.2 (no recent regression) and 0.48+devel r10735 on Mac OS X 10.5.8 (i386),

Bug only occurs if addition of new layer and deletion of the current layer was done using the menu commands from menu 'Layer' without ever opening the 'Layers…' dialog.

Workaround:
Open the 'Layers…' dialog before hitting undo: with the dialog open, the undo of the the layer deletion works as expected (deleted layer is restored).

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

I'm curious, but does the fix for Bug #806302 also possibly fix this bug as well?

Revision history for this message
su_v (suv-lp) wrote :

> I'm curious, but does the fix for Bug #806302 also possibly fix this bug as well?

No (still present in 0.48+devel r11259 on OS X 10.7.2).

Further details: the layer is actually restored when undoing 'Delete Layer', but it is not set as current layer, and not re-added to the layer selector in the status bar. The restored layer is however listed in the XML Editor as well as the 'Layers…' dialog, even if the 'Layers' dialog is opened after undoing the deletion (0.48.2, current trunk).

jazzynico (jazzynico)
Changed in inkscape:
status: Confirmed → Triaged
Revision history for this message
jazzynico (jazzynico) wrote :

Related: Bug #166691 "Changing layer order does not update layer selector".

Revision history for this message
Beluga (buovjaga) wrote :

With step details from comment #1, I do not repro. Plz re-test.

Arch Linux 64-bit, KDE Plasma 5
Inkscape 0.92+devel 15099 (GTK3)

Revision history for this message
jazzynico (jazzynico) wrote :

Reproduced on Windows 7, lp:inkscape/0.92.x rev. 15071.

The layers are correct in the layers dialog, but not in the layer selector in the status bar.

tags: added: ui
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.