Bug 462092 - Confirming crop tool with Enter crops twice
Summary: Confirming crop tool with Enter crops twice
Status: RESOLVED UPSTREAM
Alias: None
Product: Spectacle
Classification: Applications
Component: General (other bugs)
Version First Reported In: 22.08.3
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Boudhayan Gupta
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-11-21 10:57 UTC by Frank Steinmetzger
Modified: 2022-11-29 22:50 UTC (History)
2 users (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 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!