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

Fix crash caused by calling CGRectValue on an NSValue that contains a CGPoint #12

Merged
merged 2 commits into from Oct 25, 2019

Conversation

@wassup-
Copy link
Contributor

wassup- commented Oct 24, 2019

This fixes a crash that is caused by calling CGRectValue on an NSValue that contains a CGPoint.
The position property is a CGPoint, thus we must retrieve a CGPoint instead of a CGRect.
This is done by calling CGPointValue instead of CGRectValue on the NSValue.

wassup- added 2 commits Oct 24, 2019
… CGPoint

we must call CGPointValue instead of CGRectValue on the NSValue
@ctscoville ctscoville merged commit 43fb5dd into calm:master Oct 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.