Index: obj_subc.h =================================================================== --- obj_subc.h (revision 13122) +++ obj_subc.h (revision 13123) @@ -101,6 +101,9 @@ /* undoable remove */ void *pcb_subc_remove(pcb_subc_t *sc); +/* In board mode return brd_layer; in footprint edit mode, return the subcircuit + layer that matches brd_layer or brd_layer if not found. */ +pcb_layer_t *pcb_loose_subc_layer(pcb_board_t *pcb, pcb_layer_t *brd_layer); /*** loops ***/