From e082bf8c77ae549ea25d7ceb4cce45fb99a68c5b Mon Sep 17 00:00:00 2001 From: Tim Edwards Date: Mon, 2 May 2022 17:49:42 -0400 Subject: [PATCH] Corrected a problem with extresist in which node names are not transferred when doing a node merge, which can cause named terminals to get lost, because there is no longer a node with a name corresponding to the terminal. The node gets a default name which is not the terminal name, and the netlist is broken. --- resis/ResMerge.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/resis/ResMerge.c b/resis/ResMerge.c index ec611e6b..5991fbc1 100644 --- a/resis/ResMerge.c +++ b/resis/ResMerge.c @@ -742,6 +742,9 @@ ResMergeNodes(node1, node2, pendingList, doneList) node1->rn_ce = tCon; } + /* Moves name to new node, if new node does not have a name */ + if (node1->rn_name == NULL) node1->rn_name = node2->rn_name; + /* Moves resistors to new node */ workingRes = node2->rn_re;