Bug 345600 - Undo isn't drawing/rendering layers in the restored layer group
Summary: Undo isn't drawing/rendering layers in the restored layer group
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: General (other bugs)
Version First Reported In: 2.9.1
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-03-28 06:54 UTC by Loren Dias
Modified: 2015-05-22 12:08 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Yes, I can confirm. In attachment, a short video of this behavior. (399.81 KB, video/mp4)
2015-03-28 12:14 UTC, mvowada
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Loren Dias 2015-03-28 06:54:23 UTC
When you delete a layer group that contains multiple layers and then run the "undo" command -  the layers will reappear in the [ Layer List Toolbox ] but each layer will need to be toggled from visible to invisible and then back to visible again [the eyeball icon] for the layer to be rendered / drawn to the canvas.

Reproducible: Always

Steps to Reproduce:
1. Create a layer group containing 3 - 5 layers containing drawings
2. Delete the layer group
3. Undo the "delete layer group" command
4. Layers are restored yet are invisible


Expected Results:  
The Canvas should show the layers by refreshing the drawing mechanism to draw the layers to the canvas view.
Comment 1 mvowada 2015-03-28 12:14:00 UTC
Created attachment 91791 [details]
Yes, I can confirm. In attachment, a short video of this behavior.
Comment 2 David REVOY 2015-05-07 10:37:55 UTC
Confirmed, I was about to report it as a new bug item this morning. I was really afraid to loose data inside this 'empty group' badly restored. Nice video Mvowada  ; exactly the issue I saw.
Comment 3 Dmitry Kazakov 2015-05-22 12:08:48 UTC
Git commit 9fb03d886803461cbd036c5a7049914c91c0d0c2 by Dmitry Kazakov.
Committed on 22/05/2015 at 12:08.
Pushed by dkazakov into branch 'calligra/2.9'.

Fixed an update problem when undoing layer removal
Fixes T214

M  +6    -1    krita/image/commands/kis_image_layer_remove_command.cpp
A  +-    --    krita/image/tests/data/group_layer_test/undo_removal_0_initial.png
A  +-    --    krita/image/tests/data/group_layer_test/undo_removal_1_deleted.png
A  +-    --    krita/image/tests/data/group_layer_test/undo_removal_2_undone.png
M  +74   -0    krita/image/tests/kis_group_layer_test.cpp
M  +2    -0    krita/image/tests/kis_group_layer_test.h

http://commits.kde.org/calligra/9fb03d886803461cbd036c5a7049914c91c0d0c2