Index: toolpath.c =================================================================== --- toolpath.c (revision 27998) +++ toolpath.c (revision 27999) @@ -113,11 +113,13 @@ { sub_layer_text_t *ctx = ctx_; pcb_poly_t *poly = (pcb_poly_t *)obj; + pcb_bool_t dummy; + switch(obj->type) { case PCB_OBJ_LINE: sub_layer_line(ctx->pcb, ctx->result, ctx->layer, (pcb_line_t *)obj, ctx->centerline); break; case PCB_OBJ_ARC: sub_layer_arc(ctx->pcb, ctx->result, ctx->layer, (pcb_arc_t *)obj, ctx->centerline); break; case PCB_OBJ_POLY: - pcb_poly_init_clip(ctx->pcb->Data, ctx->layer, poly); + poly->Clipped = pcb_poly_to_polyarea(poly, &dummy); sub_layer_poly(ctx->pcb, ctx->result, ctx->layer, poly, ctx->centerline); pcb_polyarea_free(&poly->Clipped); break;