Bug 421560

Summary: Undo not working in ImageEditor RC
Product: [Applications] digikam Reporter: raymond.d.lucas
Component: ImageEditor-UndoAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version First Reported In: 7.0.0   
Target Milestone: ---   
Platform: Mint (Debian based)   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 7.0.0
Sentry Crash Report:

Description raymond.d.lucas 2020-05-15 12:29:29 UTC
SUMMARY
In the release candidates after digikam-7.0.0-rc-20200502T111802-x86-64.appimage. Most recently tried is digikam-7.0.0-rc-20200514T150640-x86-64.appimage.

STEPS TO REPRODUCE
1. Open an image in Image Editor
2. Make an edit eg select a section and crop (CTRL+X)
3. Try to undo (CTRL+Z) and 

OBSERVED RESULT
No visible change occurs.
Interestingly when you close the Image Editor (CTRL+W), it does not warn you to save the changed image. It's as though it thinks it has un-done the change and is back to the original, even though that's not reflected on screen.

EXPECTED RESULT
Image returns to it's original state.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 Maik Qualmann 2020-05-15 16:22:04 UTC
Git commit 4cf229715045b0f6f984808d3875e600afe83460 by Maik Qualmann.
Committed on 15/05/2020 at 16:20.
Pushed by mqualmann into branch 'master'.

fix the undo cache to use 64 bit variable
FIXED-IN: 7.0.0

M  +2    -1    NEWS
M  +5    -5    core/utilities/imageeditor/core/undocache.cpp

https://invent.kde.org/kde/digikam/commit/4cf229715045b0f6f984808d3875e600afe83460