Index: obj_line_drcenf.c =================================================================== --- obj_line_drcenf.c (revision 5404) +++ obj_line_drcenf.c (revision 5405) @@ -278,7 +278,7 @@ x_is_long = pcb_false; length = coord_abs(dy); } - group = GetGroupOfLayer(INDEXOFCURRENT); + group = pcb_layer_get_group(INDEXOFCURRENT); comp = pcb_max_group + 10; /* this out-of-range group might save a call */ if (GetLayerGroupNumberByNumber(pcb_solder_silk_layer) == group) info.solder = pcb_true; @@ -433,7 +433,7 @@ line.Point2 = aline.Point2; /* prepare for the intersection search */ - group = GetGroupOfLayer(INDEXOFCURRENT); + group = pcb_layer_get_group(INDEXOFCURRENT); comp = pcb_max_group + 10; /* this out-of-range group might save a call */ if (GetLayerGroupNumberByNumber(pcb_solder_silk_layer) == group) info.solder = pcb_true;