Index: millpath.c =================================================================== --- millpath.c (revision 28107) +++ millpath.c (revision 28108) @@ -48,7 +48,7 @@ { ctx.edge_clearance = PCB_MM_TO_COORD(0.05); ctx.tools = &tools; - PCB_ACT_IRES(pcb_tlp_mill_copper_layer(&ctx, CURRENT)); + PCB_ACT_IRES(pcb_tlp_mill_copper_layer(&ctx, PCB_CURRLAYER(PCB))); return 0; }