PyMuPDF
PyMuPDF copied to clipboard
Modified util_make_irect() to capture area more robustly;
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.
CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅
I have read the CLA Document and I hereby sign the CLA
[I think that the failure of "Test quick" is due to a problem with the latest mupdf, and not this PR.]
I've rebased this PR to get latest changes that fix test_quick.