Bug 466843

Summary: Undo works incorrectly in a certain case involving clone frames
Product: [Applications] krita Reporter: paleh <paleh21669>
Component: AnimationAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: minor CC: griffinvalley
Priority: NOR    
Version First Reported In: 5.1.5   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description paleh 2023-03-04 18:35:16 UTC
SUMMARY
This exists because of https://bugs.kde.org/show_bug.cgi?id=466840 - using the Move tool on a cloned frame unlinks the clone from the original, and it isn't taken into account by the Undo function. 


STEPS TO REPRODUCE
1. Create an empty frame
2. Draw a single brushstroke on that frame 
3. Clone (and paste) the frame
(next 2 steps must be each a single step wrt the undo stack)
4. Draw another single stroke on the clone 
5.  Switch to the Move tool, move the picture and press Enter
6.  Undo exactly 2 times (to the state before step 4)

OBSERVED RESULT
The original frame is in the state it was before step 4 - it contains a single brushstroke - whereas the clone frame (now unlinked from its source) incorrectly contains 2 strokes.

EXPECTED RESULT
Both frames must return to the state they were before step 4.

SOFTWARE/OS VERSIONS 
Linux: Ubuntu 22.04
Qt Version: 5.12.12
Comment 1 wolthera 2023-10-20 13:36:57 UTC
As noted in bug 466840, this one is also fixed now.