-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
fix a crash in getImageDate if the rectangle is outside the canvas #2145
fix a crash in getImageDate if the rectangle is outside the canvas #2145
Conversation
66ab835
to
149e13b
Compare
Rebased |
Looks good, thanks. Can you fix the conflicts? "Allow edits by maintainers" is off. |
(while you're at it, typo in the commit summary: |
Sorry for being a bit late to this. I think that this change is adding behaviour that is not in line with how canvas should work? While it is of course great that we are fixing a crash, I think it would be better to throw an "not implemented" error rather than returning an incorrectly sized |
You are right (it was the existing behavior of the lib when the rectangle was partly outside, and I wanted to just fix the crash, not alter the existing behavior). However I can alter it to comply with the standard. I will update the PR in a few days. |
149e13b
to
7281e95
Compare
7281e95
to
ad01a10
Compare
…etimagedata-crash-if-rectangle-outside-canvas * commit 'fdf709a7b08abae33a93c510b96f71df6c13c7b0': move ctx.font string to the state struct # Conflicts: # CHANGELOG.md
@zbjornson @LinusU Any input on the requested changes? This PR should now fix issues #2024 (crash) and #1849 (non-compliant behavior when retrieving data partly or completely outside the canvas) |
64ed3d8
to
ff0f2ab
Compare
@phipla wonderful job on the tests here. Sorry it took so long to get this merged, but I have done so: pushed a0c8031 to
|
Thanks for contributing!
Fixes #2024