Skip to content

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

@qalvapps

Description

@qalvapps

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;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions