Index: stat.c =================================================================== --- stat.c (revision 37071) +++ stat.c (revision 37072) @@ -110,13 +110,13 @@ static rnd_hid_attr_val_t stat_values[NUM_OPTIONS]; -static const rnd_export_opt_t *stat_get_export_options(rnd_hid_t *hid, int *n) +static const rnd_export_opt_t *stat_get_export_options(rnd_hid_t *hid, int *n, rnd_design_t *dsg, void *appspec) { const char *suffix = ".stat.lht"; const char *val = stat_values[HA_statfile].str; - if ((PCB != NULL) && ((val == NULL) || (*val == '\0'))) - pcb_derive_default_filename(PCB->hidlib.loadname, &stat_values[HA_statfile], suffix); + if ((dsg != NULL) && ((val == NULL) || (*val == '\0'))) + pcb_derive_default_filename(dsg->loadname, &stat_values[HA_statfile], suffix); if (n) *n = NUM_OPTIONS; @@ -146,7 +146,7 @@ memset(group_not_empty, 0, sizeof(group_not_empty)); if (!options) { - stat_get_export_options(hid, 0); + stat_get_export_options(hid, 0, design, appspec); options = stat_values; }