Index: rubberband.c =================================================================== --- rubberband.c (revision 7739) +++ rubberband.c (revision 7740) @@ -247,7 +247,7 @@ info.line = NULL; info.rbnd = rbnd; flg = PCB_FLAG_TEST(PCB_FLAG_ONSOLDER, Pad) ? PCB_LYT_BOTTOM : PCB_LYT_TOP; - if (pcb_layer_group_list(flg | PCB_LYT_COPPER, &group, 1) < 1) + if (pcb_layer_group_list(PCB, flg | PCB_LYT_COPPER, &group, 1) < 1) return; /* check all visible layers in the same group */ @@ -321,7 +321,7 @@ pcb_layergrp_id_t group; flg = PCB_FLAG_TEST(PCB_FLAG_ONSOLDER, Pad) ? PCB_LYT_BOTTOM : PCB_LYT_TOP; - if (pcb_layer_group_list(flg | PCB_LYT_COPPER, &group, 1) < 1) + if (pcb_layer_group_list(PCB, flg | PCB_LYT_COPPER, &group, 1) < 1) return; info.group = group;