Index: rubberband.c =================================================================== --- rubberband.c (revision 5407) +++ rubberband.c (revision 5408) @@ -319,7 +319,7 @@ static void CheckLinePointForRat(rubber_ctx_t *rbnd, pcb_layer_t *Layer, pcb_point_t *Point) { struct rinfo info; - info.group = GetLayerGroupNumberByPointer(Layer); + info.group = pcb_layer_get_group_(Layer); info.point = Point; info.type = PCB_TYPE_LINE_POINT; info.rbnd = rbnd; @@ -384,7 +384,7 @@ info.X = LinePoint->X; info.Y = LinePoint->Y; - group = GetLayerGroupNumberByPointer(Layer); + group = pcb_layer_get_group_(Layer); GROUP_LOOP(PCB->Data, group); { /* check all visible lines of the group member */ @@ -420,7 +420,7 @@ info.X = ex; info.Y = ey; - group = GetLayerGroupNumberByPointer(Layer); + group = pcb_layer_get_group_(Layer); GROUP_LOOP(PCB->Data, group); { /* check all visible lines of the group member */ @@ -442,7 +442,7 @@ pcb_cardinal_t group; /* lookup layergroup and check all visible lines in this group */ - group = GetLayerGroupNumberByPointer(Layer); + group = pcb_layer_get_group_(Layer); GROUP_LOOP(PCB->Data, group); { if (layer->On) {