Changed extraction to avoid generating an error message for devices

like resistors where a tile other than space may border the resistor
device on its non-terminal sides (which is handled correctly, and
should not be considered an error).
This commit is contained in:
Tim Edwards
2019-11-19 11:39:59 -05:00
parent d3eb03d19a
commit 3aa09725cb
3 changed files with 23 additions and 6 deletions
+8 -2
View File
@@ -2800,10 +2800,16 @@ extTransPerimFunc(bp)
devptr = extDevFindMatch(devptr, tinside);
if (devptr == deventry) devptr = NULL;
}
if (devptr == NULL)
{
TxError("Error: Cannot find valid terminals on device %s!\n",
DBTypeLongNameTbl[tinside]);
/* Outside type is not a terminal, so return to the original */
/* device record. NOTE: Should probably check if this device */
/* type is a FET, as being here would indicate an error. */
/* However, failure to find all terminals will be flagged as an */
/* error elsewhere. */
extTransRec.tr_devrec = deventry;
}
/*