Index: propedit.c =================================================================== --- propedit.c (revision 22070) +++ propedit.c (revision 22071) @@ -74,32 +74,32 @@ pcb_idpath_list_append(&pe->objs, idp); } } - else if (strncmp(cmd, "layer", 5) == 0) { - if (cmd[5] == ':') { - id = pcb_layer_str2id(pe->pcb->Data, cmd+6); + else if (strncmp(cmd, "layergrp", 8) == 0) { + if (cmd[8] == ':') { + id = pcb_layergrp_str2id(pe->pcb, cmd+9); if (id < 0) { if (!quiet) - pcb_message(PCB_MSG_ERROR, "Invalid layer ID '%s'\n", cmd+6); + pcb_message(PCB_MSG_ERROR, "Invalid layergrp ID '%s'\n", cmd+9); return FGW_ERR_ARG_CONV; } - vtl0_append(&pe->layers, id); + vtl0_append(&pe->layergrps, id); } else { - vtl0_append(&pe->layers, INDEXOFCURRENT); + vtl0_append(&pe->layergrps, CURRENT->meta.real.grp); } } - else if (strncmp(cmd, "layergrp", 8) == 0) { - if (cmd[8] == ':') { - id = pcb_layergrp_str2id(pe->pcb, cmd+9); + else if (strncmp(cmd, "layer", 5) == 0) { + if (cmd[5] == ':') { + id = pcb_layer_str2id(pe->pcb->Data, cmd+6); if (id < 0) { if (!quiet) - pcb_message(PCB_MSG_ERROR, "Invalid layergrp ID '%s'\n", cmd+9); + pcb_message(PCB_MSG_ERROR, "Invalid layer ID '%s'\n", cmd+6); return FGW_ERR_ARG_CONV; } - vtl0_append(&pe->layergrps, id); + vtl0_append(&pe->layers, id); } else { - vtl0_append(&pe->layergrps, CURRENT->meta.real.grp); + vtl0_append(&pe->layers, INDEXOFCURRENT); } } else if (strcmp(cmd, "pcb") == 0)