mirror of
https://github.com/hneemann/Digital.git
synced 2025-10-03 01:41:16 -04:00
fixed an error if nets in nested circuits are merged via a direct nested connection
This commit is contained in:
parent
ad6e26fa80
commit
f15f2bc788
@ -121,6 +121,7 @@ public class Net {
|
|||||||
*/
|
*/
|
||||||
public void addNet(Net otherNet) {
|
public void addNet(Net otherNet) {
|
||||||
pins.addAll(otherNet.getPins());
|
pins.addAll(otherNet.getPins());
|
||||||
|
if (wires != null && otherNet.getWires() != null)
|
||||||
wires.addAll(otherNet.getWires());
|
wires.addAll(otherNet.getWires());
|
||||||
labelSet.addAll(otherNet.labelSet);
|
labelSet.addAll(otherNet.labelSet);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user