Index: io_tedax.c =================================================================== --- io_tedax.c (revision 27313) +++ io_tedax.c (revision 27314) @@ -188,8 +188,12 @@ return tedax_fp_fsave(dt, f); } -static int io_tedax_write_buffer(pcb_plug_io_t *ctx, FILE *f, pcb_buffer_t *buff, pcb_bool elem_only) +static int io_tedax_write_buffer_subc(pcb_plug_io_t *ctx, FILE *f, pcb_buffer_t *buff, long idx) { + if (idx != 0) { + pcb_message(PCB_MSG_ERROR, "Only the first subcircuit cna be saved at the moment\n"); + return -1; + } return tedax_fp_fsave(buff->Data, f); } @@ -253,7 +257,8 @@ io_tedax.parse_pcb = io_tedax_parse_pcb; io_tedax.parse_footprint = io_tedax_parse_element; io_tedax.parse_font = NULL; - io_tedax.write_buffer = io_tedax_write_buffer; + io_tedax.write_buffer = NULL; + io_tedax.write_buffer_subc = io_tedax_write_buffer_subc; io_tedax.write_footprint = io_tedax_write_element; io_tedax.write_pcb = NULL; io_tedax.default_fmt = "tEDAx";