Index: trunk/src_plugins/export_excellon/excellon.c =================================================================== --- trunk/src_plugins/export_excellon/excellon.c (revision 27615) +++ trunk/src_plugins/export_excellon/excellon.c (revision 27616) @@ -206,7 +206,7 @@ static void excellon_do_export(pcb_hid_t *hid, pcb_hid_attr_val_t *options) { - const char *fnbase, *fn; + const char *fnbase, *fn, *camfn = NULL; char *filesuff; int i; int save_ons[PCB_MAX_LAYER]; @@ -228,7 +228,7 @@ options = excellon_values; } - pcb_cam_begin(PCB, &excellon_cam, &xform, options[HA_cam].str, excellon_options, NUM_OPTIONS, options); + pcb_cam_begin_nolayer(PCB, &excellon_cam, &xform, options[HA_cam].str, &camfn); fnbase = options[HA_excellonfile].str; if (!fnbase) @@ -257,9 +257,8 @@ pcb_conf_update(NULL, -1); /* resotre forced sets */ - if (excellon_cam.active) { - fn = excellon_cam.fn; - pcb_drill_export_excellon(PCB, &pdrills, conf_excellon.plugins.export_excellon.plated_g85_slot, options[HA_excellonfile_coordfmt].lng, fn); + if (camfn != NULL) { + pcb_drill_export_excellon(PCB, &pdrills, conf_excellon.plugins.export_excellon.plated_g85_slot, options[HA_excellonfile_coordfmt].lng, camfn); } else { if (options[HA_excellonfile_plated].str == NULL) {