Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ashift : fix reuse of direct straigthening #10455

Merged
merged 1 commit into from
Nov 23, 2021

Conversation

AlicVB
Copy link
Contributor

@AlicVB AlicVB commented Nov 22, 2021

this fix #10453
the fix here is "just" on the "help tool" for straightening with right-click+drag. So it doesn't change anything in params or process.
if rotate and perspective has more than just rotation applied, we can't rely anymore on transformed points. So let's "just" apply the rotation on top of the current one instead.
Note that in this case, we still can have some unexpected result, especially on image borders. This is due to the fact that perspective correction can change with rotation, but we can't really do anything for this case...

in my tests, I've not spotted any regressions, but better double check, as usual ;)

@AlicVB AlicVB added bugfix pull request fixing a bug difficulty: trivial some changes in a couple of functions labels Nov 22, 2021
@AlicVB AlicVB added this to the 3.8 milestone Nov 22, 2021
@elstoc
Copy link
Contributor

elstoc commented Nov 22, 2021

Looks good to me. Thanks @AlicVB.

@TurboGit TurboGit self-requested a review November 23, 2021 09:50
Copy link
Member

@TurboGit TurboGit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works for me, thanks!

@TurboGit TurboGit merged commit e30ccdc into darktable-org:master Nov 23, 2021
@AlicVB AlicVB deleted the ashift_fix_rerot branch December 15, 2021 17:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix pull request fixing a bug difficulty: trivial some changes in a couple of functions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

rotate & perspective don't play well together
3 participants