Index: io_tedax.c =================================================================== --- io_tedax.c (revision 28107) +++ io_tedax.c (revision 28108) @@ -90,7 +90,7 @@ } if (pcb_strcasecmp(type, "layer") == 0) { - PCB_ACT_IRES(tedax_layer_save(PCB, pcb_layer_get_group_(CURRENT), NULL, fname)); + PCB_ACT_IRES(tedax_layer_save(PCB, pcb_layer_get_group_(PCB_CURRLAYER(PCB)), NULL, fname)); return 0; }