Index: export_stl.c =================================================================== --- export_stl.c (revision 37052) +++ export_stl.c (revision 37053) @@ -369,7 +369,7 @@ const char *val = stl_values[HA_stlfile].str; if ((PCB != NULL) && ((val == NULL) || (*val == '\0'))) - pcb_derive_default_filename(PCB->hidlib.filename, &stl_values[HA_stlfile], suffix); + pcb_derive_default_filename(PCB->hidlib.loadname, &stl_values[HA_stlfile], suffix); if (n) *n = NUM_OPTIONS;