mirror of
https://github.com/hneemann/Digital.git
synced 2025-09-17 08:55:05 -04:00
fixed a mysterious bug in the RelayShape.java
This commit is contained in:
parent
a6822c16ab
commit
6525256813
@ -41,8 +41,7 @@ public class RelayShape implements Shape {
|
|||||||
public RelayShape(ElementAttributes attributes, PinDescriptions inputs, PinDescriptions outputs) {
|
public RelayShape(ElementAttributes attributes, PinDescriptions inputs, PinDescriptions outputs) {
|
||||||
this.inputs = inputs;
|
this.inputs = inputs;
|
||||||
this.outputs = outputs;
|
this.outputs = outputs;
|
||||||
invers = attributes.get(Keys.RELAY_NORMALLY_CLOSED);
|
relayIsClosed = attributes.get(Keys.RELAY_NORMALLY_CLOSED);
|
||||||
relayIsClosed = invers;
|
|
||||||
label = attributes.getCleanLabel();
|
label = attributes.getCleanLabel();
|
||||||
poles = attributes.get(Keys.POLES);
|
poles = attributes.get(Keys.POLES);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user