fixed an error if nets in nested circuits are merged via a direct nested connection

This commit is contained in:
hneemann 2017-04-07 13:01:29 +02:00
parent ad6e26fa80
commit f15f2bc788

View File

@ -121,7 +121,8 @@ public class Net {
*/
public void addNet(Net otherNet) {
pins.addAll(otherNet.getPins());
wires.addAll(otherNet.getWires());
if (wires != null && otherNet.getWires() != null)
wires.addAll(otherNet.getWires());
labelSet.addAll(otherNet.labelSet);
}