Index: layer.c =================================================================== --- layer.c (revision 27088) +++ layer.c (revision 27089) @@ -1131,11 +1131,11 @@ *xform = NULL; TODO("layer: need to pass the flags of the group, not the flags of the layer once we have a group for each layer") - if (pcb_gui->set_layer_group != NULL) { + if (pcb_render->set_layer_group != NULL) { pcb_layergrp_id_t grp; pcb_layer_id_t lid = v->new_id; grp = pcb_layer_get_group(pcb, lid); - return pcb_gui->set_layer_group(pcb_gui, grp, v->purpose, v->purpi, lid, v->type, is_empty, xform); + return pcb_render->set_layer_group(pcb_gui, grp, v->purpose, v->purpi, lid, v->type, is_empty, xform); } /* if the GUI doesn't have a set_layer, assume it wants to draw all layers */ @@ -1151,8 +1151,8 @@ if (xform != NULL) *xform = NULL; - if (pcb_gui->set_layer_group != NULL) - return pcb_gui->set_layer_group(pcb_gui, -1, NULL, -1, pcb_layer_id(first->parent.data, first), PCB_LYT_VIRTUAL | PCB_LYT_UI, is_empty, xform); + if (pcb_render->set_layer_group != NULL) + return pcb_render->set_layer_group(pcb_gui, -1, NULL, -1, pcb_layer_id(first->parent.data, first), PCB_LYT_VIRTUAL | PCB_LYT_UI, is_empty, xform); /* if the GUI doesn't have a set_layer, assume it wants to draw all layers */ return 1;