Index: cam_compile.c =================================================================== --- cam_compile.c (revision 30979) +++ cam_compile.c (revision 30980) @@ -150,7 +150,7 @@ if (ctx->has_partial) pcb_data_clear_flag(PCB->Data, PCB_FLAG_EXPORTSEL, 0, 0); - have_gui = (pcb_gui != NULL) && pcb_gui->gui; + have_gui = (rnd_gui != NULL) && rnd_gui->gui; if (have_gui) { pcb_hid_save_and_show_layer_ons(save_l_ons); pcb_hid_save_and_show_layergrp_ons(save_g_ons); Index: cam_gui.c =================================================================== --- cam_gui.c (revision 30979) +++ cam_gui.c (revision 30980) @@ -75,7 +75,7 @@ if (cursor_path != NULL) { rnd_hid_attr_val_t hv; hv.str = cursor_path; - pcb_gui->attr_dlg_set_value(ctx->dlg_hid_ctx, ctx->wjobs, &hv); + rnd_gui->attr_dlg_set_value(ctx->dlg_hid_ctx, ctx->wjobs, &hv); } } @@ -139,7 +139,7 @@ cam_parse_opt_outfile(&ctx->cam, ctx->dlg[ctx->woutfile].val.str); hv.str = ctx->cam.prefix == NULL ? "" : ctx->cam.prefix; - pcb_gui->attr_dlg_set_value(ctx->dlg_hid_ctx, ctx->wprefix, &hv); + rnd_gui->attr_dlg_set_value(ctx->dlg_hid_ctx, ctx->wprefix, &hv); attr = &ctx->dlg[ctx->wopts]; tree = attr->wdata; @@ -164,7 +164,7 @@ if (cursor_path != NULL) { rnd_hid_attr_val_t hv; hv.str = cursor_path; - pcb_gui->attr_dlg_set_value(ctx->dlg_hid_ctx, ctx->wopts, &hv); + rnd_gui->attr_dlg_set_value(ctx->dlg_hid_ctx, ctx->wopts, &hv); } } @@ -342,7 +342,7 @@ { /* set default outfile */ rnd_hid_attr_val_t hv; hv.str = pcb_derive_default_filename_(PCB->hidlib.filename, ""); - pcb_gui->attr_dlg_set_value(ctx->dlg_hid_ctx, ctx->woutfile, &hv); + rnd_gui->attr_dlg_set_value(ctx->dlg_hid_ctx, ctx->woutfile, &hv); free((char *)hv.str); cam_gui_opts2dlg(ctx); }