Index: layer_grp.c =================================================================== --- layer_grp.c (revision 25200) +++ layer_grp.c (revision 25201) @@ -687,7 +687,7 @@ *xform = NULL; if (pcb_gui->set_layer_group != NULL) - return pcb_gui->set_layer_group(gid, grp->purpose, grp->purpi, grp->lid[0], grp->ltype, is_empty, xform); + return pcb_gui->set_layer_group(&PCB->hidlib, gid, grp->purpose, grp->purpi, grp->lid[0], grp->ltype, is_empty, xform); /* if the GUI doesn't have a set_layer, assume it wants to draw all layers */ return 1;