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

Selected region assertion fix #225

Merged
merged 4 commits into from
Mar 2, 2023
Merged

Conversation

stefan-it
Copy link
Contributor

@stefan-it stefan-it commented Mar 2, 2023

Hi,

this PR fixes the region boundary check assertion. In some cases, the selected region could be larger than the original image boundaries, but the extraCrop rectangle limits it later.

With this fix, the width and height of extraCrop is used for boundary check (when extraCrop was previously used).

Bug was identified in recent Hymir build and test case was adopted from there.

bitzl
bitzl previously approved these changes Mar 2, 2023
@stefan-it stefan-it merged commit 7c6a5f6 into main Mar 2, 2023
@stefan-it stefan-it deleted the selected-region-assertion-fix branch March 2, 2023 16:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants