mirror of
https://github.com/supleed2/ELEC60015-HLP-CW.git
synced 2024-12-22 21:45:49 +00:00
Fixed minor bug
This commit is contained in:
parent
64f89d1ae5
commit
6dfb2a2469
|
@ -1532,9 +1532,9 @@ let update (msg : Msg) (model : Model): Model*Cmd<'a> =
|
||||||
InWidth1 = None;
|
InWidth1 = None;
|
||||||
APortOffsetsMap = (Map.empty<string,PortOrientationOffset>)
|
APortOffsetsMap = (Map.empty<string,PortOrientationOffset>)
|
||||||
}
|
}
|
||||||
match comp.Type with
|
match comp.SI with
|
||||||
|Custom _ -> {s with APortOffsetsMap = reconstructCustomPortMap comp.SI (findrotatedportmap s R0) comp.W comp.H}
|
|[] -> {s with APortOffsetsMap = (findrotatedportmap s s.STransform)} //SI is empty for all other components except custom + when custom has not been altered
|
||||||
|_ -> {s with APortOffsetsMap = (findrotatedportmap s s.STransform)}
|
|_ -> {s with APortOffsetsMap = reconstructCustomPortMap comp.SI (findrotatedportmap s R0) comp.W comp.H} //if custom has been altered, reconstruct based on SI member of component
|
||||||
))
|
))
|
||||||
let symbolList =
|
let symbolList =
|
||||||
compIdsWithSymbols
|
compIdsWithSymbols
|
||||||
|
|
Loading…
Reference in a new issue