Index: propdlg.c =================================================================== --- propdlg.c (revision 26936) +++ propdlg.c (revision 26937) @@ -71,7 +71,7 @@ attr = &ctx->dlg[ctx->wtree]; attr_inp = &ctx->dlg[ctx->wfilter]; tree = (pcb_hid_tree_t *)attr->enumerations; - text = attr_inp->default_val.str_value; + text = attr_inp->val.str_value; have_filter_text = (text != NULL) && (*text != '\0'); /* hide or unhide everything */ @@ -214,7 +214,7 @@ case PCB_PROPT_ANGLE: case PCB_PROPT_INT: case PCB_PROPT_BOOL: - if (!ctx->dlg[ctx->wabs[p->type]].default_val.int_value) + if (!ctx->dlg[ctx->wabs[p->type]].val.int_value) return; default: break; } @@ -319,30 +319,30 @@ case PCB_PROPT_max: return; case PCB_PROPT_STRING: - sctx.s = ctx->dlg[ctx->wedit[p->type]].default_val.str_value; + sctx.s = ctx->dlg[ctx->wedit[p->type]].val.str_value; break; case PCB_PROPT_COORD: - sctx.c = ctx->dlg[ctx->wedit[p->type]].default_val.coord_value; - sctx.c_absolute = ctx->dlg[ctx->wabs[p->type]].default_val.int_value; + sctx.c = ctx->dlg[ctx->wedit[p->type]].val.coord_value; + sctx.c_absolute = ctx->dlg[ctx->wabs[p->type]].val.int_value; sctx.c_valid = 1; break; case PCB_PROPT_ANGLE: - sctx.d = ctx->dlg[ctx->wedit[p->type]].default_val.real_value; - sctx.d_absolute = ctx->dlg[ctx->wabs[p->type]].default_val.int_value; + sctx.d = ctx->dlg[ctx->wedit[p->type]].val.real_value; + sctx.d_absolute = ctx->dlg[ctx->wabs[p->type]].val.int_value; sctx.d_valid = 1; break; case PCB_PROPT_INT: - sctx.c = ctx->dlg[ctx->wedit[p->type]].default_val.int_value; - sctx.c_absolute = ctx->dlg[ctx->wabs[p->type]].default_val.int_value; + sctx.c = ctx->dlg[ctx->wedit[p->type]].val.int_value; + sctx.c_absolute = ctx->dlg[ctx->wabs[p->type]].val.int_value; sctx.c_valid = 1; break; case PCB_PROPT_BOOL: - sctx.c = ctx->dlg[ctx->wedit[p->type]].default_val.int_value; - sctx.c_absolute = ctx->dlg[ctx->wabs[p->type]].default_val.int_value; + sctx.c = ctx->dlg[ctx->wedit[p->type]].val.int_value; + sctx.c_absolute = ctx->dlg[ctx->wabs[p->type]].val.int_value; sctx.c_valid = 1; break; case PCB_PROPT_COLOR: - sctx.color = ctx->dlg[ctx->wedit[p->type]].default_val.clr_value; + sctx.color = ctx->dlg[ctx->wedit[p->type]].val.clr_value; sctx.clr_valid = 1; break; } @@ -375,13 +375,13 @@ PCB_DAD_END(dlg); PCB_DAD_AUTORUN("propedit_add", dlg, "Propedit: add new attribute", NULL, failed); - key = dlg[wkey].default_val.str_value; + key = dlg[wkey].val.str_value; if (key == NULL) key = ""; while(isspace(*key)) key++; if ((failed == 0) && (*key != '\0')) { char *path = pcb_strdup_printf("a/%s", key); - pcb_propsel_set_str(&ctx->pe, path, dlg[wval].default_val.str_value); + pcb_propsel_set_str(&ctx->pe, path, dlg[wval].val.str_value); free(path); prop_refresh(ctx); }