Index: file_act.c =================================================================== --- file_act.c (revision 36997) +++ file_act.c (revision 36998) @@ -559,6 +559,7 @@ static const char pcb_acth_Export[] = "Export the current layout, e.g. Export(png, --dpi, 600)"; static fgw_error_t pcb_act_Export(fgw_arg_t *res, int argc, fgw_arg_t *argv) { + rnd_design_t *dsg = RND_ACT_DESIGN; char *args[128]; char **a; int n; @@ -591,7 +592,7 @@ a = args; a++; rnd_exporter->parse_arguments(rnd_exporter, &argc, &a); - rnd_exporter->do_export(rnd_exporter, NULL); + rnd_exporter->do_export(rnd_exporter, dsg, NULL, NULL); rnd_event(RND_ACT_DESIGN, RND_EVENT_EXPORT_SESSION_END, NULL); rnd_exporter = NULL; Index: main.c =================================================================== --- main.c (revision 36997) +++ main.c (revision 36998) @@ -551,7 +551,7 @@ rnd_parse_actions(&PCB->hidlib, conf_core.rc.action_string); } - if (rnd_main_exported(&ga, &PCB->hidlib, pcb_data_is_empty(PCB->Data))) { + if (rnd_main_exported(&ga, &PCB->hidlib, pcb_data_is_empty(PCB->Data), NULL)) { pcb_main_uninit(); rnd_main_args_uninit(&ga); exit(0);