Index: openems_xml.c =================================================================== --- openems_xml.c (revision 32004) +++ openems_xml.c (revision 32005) @@ -28,6 +28,9 @@ static double def_end_crit = 1e-05; static long def_f_max = 2100000000; +TODO("remove this once the function is moved and published in core") +extern const char *pcb_layergrp_thickness_attr(pcb_layergrp_t *grp, const char *namespace); + static void openems_wr_xml_layergrp_end(wctx_t *ctx) { if (ctx->cond_sheet_open) { @@ -65,8 +68,10 @@ } ly = pcb_get_layer(ctx->pcb->Data, g->lid[0]); -TODO("Fix hardwired constants"); - fprintf(ctx->f, " \n", g->name); + fprintf(ctx->f, " \n", th); + if (ly != NULL) { fprintf(ctx->f, " \n", ly->meta.real.color.r, ly->meta.real.color.g, ly->meta.real.color.b); fprintf(ctx->f, " \n", ly->meta.real.color.r, ly->meta.real.color.g, ly->meta.real.color.b); @@ -79,9 +84,6 @@ ctx->elevation = RND_COORD_TO_MM(th); } -TODO("remove this once the function is moved and published in core") -extern const char *pcb_layergrp_thickness_attr(pcb_layergrp_t *grp, const char *namespace); - static int openems_wr_xml_outline(wctx_t *ctx, pcb_layergrp_t *g) { int n;