Added resistors and inductors to the list of devices whose merging

properties are defined by "property default".
This commit is contained in:
Tim Edwards 2016-07-16 15:48:51 -04:00
parent 618f912cac
commit be819b7200
1 changed files with 8 additions and 0 deletions

View File

@ -3029,9 +3029,17 @@ _netcmp_property(ClientData clientData,
PropertyDelete(tp->name, tp->file, "ps");
PropertyDelete(tp->name, tp->file, "pd");
break;
case CLASS_RES: case CLASS_RES3:
PropertyMerge(tp->name, tp->file, "l", MERGE_PAR_CRIT);
break;
case CLASS_CAP: case CLASS_ECAP: case CLASS_CAP3:
// NOTE: No attempt to combine area, width, or length;
// only value.
PropertyMerge(tp->name, tp->file, "value", MERGE_ADD_CRIT);
break;
case CLASS_INDUCTOR:
PropertyMerge(tp->name, tp->file, "value", MERGE_PAR_CRIT);
break;
}
tp = NextCell();
}