Index: act_draw.c =================================================================== --- act_draw.c (revision 34515) +++ act_draw.c (revision 34516) @@ -291,7 +291,7 @@ if (rnd_color_load_str(&clr, color) != 0) return FGW_ERR_ARG_CONV; - layer = pcb_uilayer_alloc(uilayer_cookie, name, &clr); + layer = pcb_uilayer_alloc(PCB_ACT_BOARD, uilayer_cookie, name, &clr); if (layer == NULL) return FGW_ERR_ARG_CONV;