Index: trunk/src_plugins/io_tedax/io_tedax.c =================================================================== --- trunk/src_plugins/io_tedax/io_tedax.c (revision 729) +++ trunk/src_plugins/io_tedax/io_tedax.c (revision 730) @@ -48,6 +48,7 @@ char buf[514]; char *argv[510]; htsp_t grps; /* group name -> temporary layer */ + long lypos; } read_ctx_t; #define coord_conv(dst, argnum, err) \ @@ -183,7 +184,7 @@ ly->sub = 1; ly->clearing = clearing; ly->color = ly_main->color; - camv_layer_append_to_design(ctx->camv, ly); + ctx->lypos = camv_sublayer_append_after(ctx->camv, ly, ctx->lypos); } } @@ -328,7 +329,7 @@ found_one = 1; ly = camv_layer_new(); ly->name = rnd_strdup(ctx.argv[3]); - camv_layer_append_to_design(camv, ly); + ctx.lypos = camv_layer_append_to_design(camv, ly); if (tdx_parse_layer(&ctx, ly, 0) != 0) { load_res = -1; /* free all layers created by this load attempt */