Index: layer_grp.c =================================================================== --- layer_grp.c (revision 26775) +++ layer_grp.c (revision 26776) @@ -687,7 +687,7 @@ *xform = NULL; if (pcb_gui->set_layer_group != NULL) - return pcb_gui->set_layer_group(&PCB->hidlib, gid, grp->purpose, grp->purpi, grp->lid[0], grp->ltype, is_empty, xform); + return pcb_gui->set_layer_group(pcb_gui, &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;