Corrected the parsing of the "model" command, which was failing to

pass the right cell name to the routine which counts the number of
pins.  Using this in a setup file will prevent netgen from spending
time matching low-level devices.
This commit is contained in:
Tim Edwards 2024-05-14 15:12:41 -04:00
parent 2d427aef3c
commit fcee934580
2 changed files with 2 additions and 3 deletions

View File

@ -1 +1 @@
1.5.274
1.5.275

View File

@ -1595,8 +1595,7 @@ _netgen_model(ClientData clientData,
return result;
if (objc == 3) {
model = Tcl_GetString(objv[2]);
nports = NumberOfPorts(model, fnum);
nports = NumberOfPorts(tp->name, fnum);
if (Tcl_GetIndexFromObj(interp, objv[2], (CONST84 char **)modelclasses,
"class", 0, &index) != TCL_OK) {