Index: obj_arc.h =================================================================== --- obj_arc.h (revision 8318) +++ obj_arc.h (revision 8319) @@ -105,7 +105,7 @@ pcb_layer_t *layer = (top)->Layer; \ for (l =0; l < ((top)->LayerN > 0 ? (top)->LayerN : PCB->Data->LayerN); l++, layer++) \ { \ - if (!(pcb_layer_flags(l) & PCB_LYT_COPPER)) continue; \ + if (!(pcb_layer_flags(PCB, l) & PCB_LYT_COPPER)) continue; \ PCB_ARC_LOOP(layer) #define PCB_ARC_SILK_LOOP(top) do { \ @@ -113,7 +113,7 @@ pcb_layer_t *layer = (top)->Layer; \ for (l = 0; l < ((top)->LayerN > 0 ? (top)->LayerN : PCB->Data->LayerN); l++, layer++) \ { \ - if (!(pcb_layer_flags(l) & PCB_LYT_SILK)) continue; \ + if (!(pcb_layer_flags(PCB, l) & PCB_LYT_SILK)) continue; \ PCB_ARC_LOOP(layer) #define PCB_ARC_VISIBLE_LOOP(top) do { \