Index: layer_it.h =================================================================== --- layer_it.h (revision 32858) +++ layer_it.h (revision 32859) @@ -71,10 +71,10 @@ it->lidx = 0; continue; /* skip to next group */ } - /* TODO: check group flags against mask here for more efficiency */ + lid = g->lid[it->lidx]; it->lidx++; - hit = pcb_layer_flags(PCB, lid) & it->mask; + hit = g->ltype & it->mask; if (it->exact) { if (hit == it->mask) return lid;