Index: trunk/src/layer_grp.c =================================================================== --- trunk/src/layer_grp.c (revision 28233) +++ trunk/src/layer_grp.c (revision 28234) @@ -1081,9 +1081,9 @@ {"top_copper", PCB_LYT_TOP | PCB_LYT_COPPER, NULL, 0, 0}, {"any_internal_copper", PCB_LYT_INTERN | PCB_LYT_COPPER, NULL, 0, 0}, {"bottom_copper", PCB_LYT_BOTTOM | PCB_LYT_COPPER, NULL, 0, 0}, - {"bottom_mask", PCB_LYT_BOTTOM | PCB_LYT_MASK, NULL, PCB_LYC_SUB | PCB_LYC_AUTO, 1}, - {"bottom_silk", PCB_LYT_BOTTOM | PCB_LYT_SILK, NULL, PCB_LYC_AUTO, 1}, - {"bottom_paste", PCB_LYT_BOTTOM | PCB_LYT_PASTE, NULL, PCB_LYC_AUTO, 1}, + {"bottom_mask", PCB_LYT_BOTTOM | PCB_LYT_MASK, NULL, PCB_LYC_SUB | PCB_LYC_AUTO, PCB_DFLGMAP_FORCE_END}, + {"bottom_silk", PCB_LYT_BOTTOM | PCB_LYT_SILK, NULL, PCB_LYC_AUTO, PCB_DFLGMAP_FORCE_END}, + {"bottom_paste", PCB_LYT_BOTTOM | PCB_LYT_PASTE, NULL, PCB_LYC_AUTO, PCB_DFLGMAP_FORCE_END}, {"pmech", PCB_LYT_MECH, "proute", PCB_LYC_AUTO, 0}, {"umech", PCB_LYT_MECH, "uroute", PCB_LYC_AUTO, 0}, @@ -1162,7 +1162,7 @@ free(grp->name); } else - grp = pcb_get_grp_new_intern_(pcb, 1, m->force_end); + grp = pcb_get_grp_new_intern_(pcb, 1, (m->flags & PCB_DFLGMAP_FORCE_END)); pcb_layergrp_set_dflgly(pcb, grp, m, NULL, NULL); } inhibit_notify--; Index: trunk/src/layer_grp.h =================================================================== --- trunk/src/layer_grp.h (revision 28233) +++ trunk/src/layer_grp.h (revision 28234) @@ -260,7 +260,9 @@ pcb_layer_type_t lyt; const char *purpose; pcb_layer_combining_t comb; - int force_end; + enum { /* bitfield */ + PCB_DFLGMAP_FORCE_END = 1 + } flags; } pcb_dflgmap_t; extern const pcb_dflgmap_t pcb_dflgmap[]; /* the whole map, without doc layers */