Bug 449798

Summary: Aspect Ratio Crop inconsistency ?
Product: [Applications] digikam Reporter: Alexandre Belz <alexandre.belz>
Component: Plugin-Editor-CropAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: metzpinguin
Priority: NOR    
Version First Reported In: 7.6.0   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed/Implemented In: 7.6.0
Sentry Crash Report:
Attachments: Screen Capture

Description Alexandre Belz 2022-02-08 16:49:04 UTC
Created attachment 146449 [details]
Screen Capture

SUMMARY
***
Inconsistency between selected (recalled/restored) default 4:3 ration, while 1:1 is effectively applied 
***


STEPS TO REPRODUCE
1. Open a picture on Picture Editor
2. Click on "Aspect Ratio Crop"
3. Aspect Ratio is asked 4:3 ont the right panel

OBSERVED RESULT
Selection area has an Aspect Ratio of  1:1, and "Custom Ratio" bars are enabled. 

EXPECTED RESULT
Selection area should be 4:3, "Custom Ratio" bars should be disabled. 

SOFTWARE/OS VERSIONS
Windows: 10

ADDITIONAL INFORMATION
* Does not depend on picture
* Clicking on general button "Defaults" (at the bottom) change the sliders value, but not the displayed area (that stays 1:1)

Found WORKAROUND : 
* Select Custom
* Select back 4:3 ;  then only the right Aspect Ratio is displayed on the picture.
Comment 1 Maik Qualmann 2022-02-08 20:11:07 UTC
Git commit 330f0ce5a1a030c511ac1d16b6dabe95e3287fcd by Maik Qualmann.
Committed on 08/02/2022 at 20:10.
Pushed by mqualmann into branch 'master'.

fix resetting ratio crop tool in the non restore tool mode
FIXED-IN: 7.6.0

M  +1    -1    NEWS
M  +60   -4    core/dplugins/editor/transform/ratiocrop/ratiocroptool.cpp
M  +1    -0    core/dplugins/editor/transform/ratiocrop/ratiocroptool.h

https://invent.kde.org/graphics/digikam/commit/330f0ce5a1a030c511ac1d16b6dabe95e3287fcd