Index: obj_arc.h =================================================================== --- obj_arc.h (revision 6125) +++ obj_arc.h (revision 6126) @@ -103,16 +103,17 @@ #define PCB_ARC_COPPER_LOOP(top) do { \ pcb_cardinal_t l; \ pcb_layer_t *layer = (top)->Layer; \ - for (l =0; l < pcb_max_copper_layer; l++, layer++) \ + for (l =0; l < pcb_max_layer; l++, layer++) \ { \ + if (!(pcb_layer_flags(l) & PCB_LYT_COPPER)) continue; \ PCB_ARC_LOOP(layer) #define PCB_ARC_SILK_LOOP(top) do { \ pcb_cardinal_t l; \ pcb_layer_t *layer = (top)->Layer; \ - layer += pcb_max_copper_layer; \ - for (l = 0; l < 2; l++, layer++) \ + for (l = 0; l < pcb_max_layer; l++, layer++) \ { \ + if (!(pcb_layer_flags(l) & PCB_LYT_SILK)) continue; \ PCB_ARC_LOOP(layer) #define PCB_ARC_VISIBLE_LOOP(top) do { \