Index: trunk/src_plugins/cam/cam_compile.c =================================================================== --- trunk/src_plugins/cam/cam_compile.c (revision 27669) +++ trunk/src_plugins/cam/cam_compile.c (revision 27670) @@ -32,6 +32,7 @@ #include "cam_compile.h" #include "layer_vis.h" #include "event.h" +#include "safe_fs.h" #include @@ -142,7 +143,10 @@ { int res = 0, n, have_gui, currly = INDEXOFCURRENT; int save_l_ons[PCB_MAX_LAYER], save_g_ons[PCB_MAX_LAYERGRP]; + int ovr = 0, *old_ovr; + old_ovr = pcb_batched_ask_ovr_init(&PCB->hidlib, &ovr); + if (ctx->has_partial) pcb_data_clear_flag(PCB->Data, PCB_FLAG_EXPORTSEL, 0, 0); @@ -170,6 +174,8 @@ pcb_layervis_change_group_vis(currly, 1, 1); pcb_event(&PCB->hidlib, PCB_EVENT_LAYERVIS_CHANGED, NULL); } + + pcb_batched_ask_ovr_uninit(&PCB->hidlib, old_ovr); return res; }