Bug 294910

Summary: Clone Layer of a Clone Layer dealt wrong on removing the source
Product: [Applications] krita Reporter: Dmitry Kazakov <dimula73>
Component: GeneralAssignee: Dmitry Kazakov <dimula73>
Status: RESOLVED FIXED    
Severity: normal CC: halla
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Unlisted Binaries   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Dmitry Kazakov 2012-02-27 08:55:15 UTC
Clone Layer 2 (of CL1)
Clone Layer 1 (of PL1)
Paint Layer 1

1) Remove Paint Layer 1
2) Remove Clone Layer 1

Clone Layer 2 should reincarnate into a paint layer after the second removal, but it doesn't.
Comment 1 Dmitry Kazakov 2012-03-02 18:09:45 UTC
Git commit c22a5bf7d81fb3b449399c69045a5b1f236f8943 by Dmitry Kazakov.
Committed on 02/03/2012 at 20:02.
Pushed by dkazakov into branch 'master'.

Fix transitive clones bug

Also fixes a crash on undo/redo of the clone layers
(unittests shows the case)

M  +37   -14   krita/image/commands/kis_image_layer_remove_command.cpp
M  +1    -0    krita/image/commands/kis_image_layer_remove_command.h
M  +2    -1    krita/image/kis_clone_layer.cpp
M  +1    -1    krita/image/kis_clone_layer.h
M  +40   -0    krita/image/tests/kis_clone_layer_test.cpp
M  +1    -0    krita/image/tests/kis_clone_layer_test.h

http://commits.kde.org/calligra/c22a5bf7d81fb3b449399c69045a5b1f236f8943