Bug 466843 - Undo works incorrectly in a certain case involving clone frames
Summary: Undo works incorrectly in a certain case involving clone frames
Status: RESOLVED WORKSFORME
Alias: None
Product: krita
Classification: Applications
Component: Animation (show other bugs)
Version: 5.1.5
Platform: Ubuntu Linux
: NOR minor
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-03-04 18:35 UTC by paleh
Modified: 2023-10-20 13:36 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.