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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

psambit9791
Copy link

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

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

@psambit9791
Copy link
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.

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