Index: cam_compile.c =================================================================== --- cam_compile.c (revision 25188) +++ cam_compile.c (revision 25189) @@ -134,7 +134,7 @@ if (have_gui) { pcb_hid_restore_layer_ons(save_ons); - pcb_event(PCB_EVENT_LAYERVIS_CHANGED, NULL); + pcb_event(&PCB->hidlib, PCB_EVENT_LAYERVIS_CHANGED, NULL); } return 0; }