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

crash when considering intersection of 2 polygons which don't intersect #1

Open
qalvapps opened this issue Apr 19, 2014 · 1 comment

Comments

@qalvapps
Copy link

Not sure if I was just unlucky, or if this fix is 100% but seems to solve my probs:
I added the 'if' statement after the assert in (MKPolygon *) polygonWithGPCPolygon:(gpc_polygon *) gpcPolygon interiorPolygons:(NSArray *)interiorPolygons , like so

NSAssert( gpcPolygon != NULL, @"attempt to create path from NULL gpcPolygon");

if (gpcPolygon->contour == NULL) {
    return nil;
}
@justbcuz
Copy link

Thank you very much for finding this issue. Can you provide me an example to reproduce this error. I am trying to see if the error is in polygonWithGPCPolygon or when I convert a MKPolygon to a gpcPolygon. Thanks.

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

No branches or pull requests

2 participants