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

Modified util_make_irect() to capture area more robustly; #3167

Merged
merged 2 commits into from
Nov 17, 2024

Conversation

psambit9791
Copy link
Contributor

Relates to issue #3163.

This updates updates the area of the rectangle based on the floating point. Instead of simply typecasting from float to int, this function now floors the coordinates for the top left corner and ceils the coordinates for the bottom right corner.

This allows the function to more robustly detect the rectangle.

Copy link
Contributor

github-actions bot commented Feb 16, 2024

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@psambit9791
Copy link
Contributor Author

I have read the CLA Document and I hereby sign the CLA

@julian-smith-artifex-com
Copy link
Collaborator

[I think that the failure of "Test quick" is due to a problem with the latest mupdf, and not this PR.]

@julian-smith-artifex-com
Copy link
Collaborator

I've rebased this PR to get latest changes that fix test_quick.

@JorjMcKie JorjMcKie merged commit c34ac48 into pymupdf:main Nov 17, 2024
2 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Nov 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants