Bug 462092

Summary: Confirming crop tool with Enter crops twice
Product: [Applications] Spectacle Reporter: Frank Steinmetzger <dev+kde>
Component: GeneralAssignee: Boudhayan Gupta <me>
Status: RESOLVED UPSTREAM    
Severity: normal CC: kde, nate
Priority: NOR    
Version First Reported In: 22.08.3   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Frank Steinmetzger 2022-11-21 10:57:22 UTC
SUMMARY
When I confirm the selected crop region with Enter, the wrong area is apparently cropped.

STEPS TO REPRODUCE
1. Take a screenshot
2. Go to Annotations
3. Select Crop and pick a region
4. Press Enter to crop

OBSERVED RESULT
A much smaller region than what I selected is cropped. Now I press Ctrl+Z to undo, and the image appears with the proper crop. It seems to me that cropping is executed twice. This does not happen if I accept the crop by clicking the Apply button.
I tried a different region of the image, and the cropped region was OK, but still cropped twice (I had to press Ctrl+Z two times to get back to the original image).

EXPECTED RESULT
The proper region shall be cropped.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux
KDE Plasma Version: 5.26.3
KDE Frameworks Version: 5.100.0
Qt Version: 5.15.7
Kernel Version: 6.0.9-arch1-1 (64-bit)
Graphics Platform: X11
Comment 1 Nate Graham 2022-11-29 22:50:52 UTC
This functionality comes from https://github.com/ksnip/kImageAnnotator/issues; please report the issue there. Thanks!