Index: layer_grp.c =================================================================== --- layer_grp.c (revision 29692) +++ layer_grp.c (revision 29693) @@ -163,7 +163,7 @@ return -1; inhibit_notify++; - if (auto_substrate && (og->ltype & PCB_LYT_COPPER)&& !(og->ltype & PCB_LYT_BOTTOM)) { + if (auto_substrate && (og->ltype & PCB_LYT_COPPER) && !(og->ltype & PCB_LYT_BOTTOM)) { ng = pcb_layergrp_insert_after(pcb, gid); make_substrate(pcb, ng); after = ng - pcb->LayerGroups.grp;