From 6dfb2a24698bbfec18dc2ca44de854ac17b187d4 Mon Sep 17 00:00:00 2001 From: Archontis Pantelopoulos Date: Tue, 15 Mar 2022 13:24:54 +0000 Subject: [PATCH] Fixed minor bug --- src/Renderer/DrawBlock/Symbol.fs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Renderer/DrawBlock/Symbol.fs b/src/Renderer/DrawBlock/Symbol.fs index 2552ad4..9492d0b 100644 --- a/src/Renderer/DrawBlock/Symbol.fs +++ b/src/Renderer/DrawBlock/Symbol.fs @@ -1532,9 +1532,9 @@ let update (msg : Msg) (model : Model): Model*Cmd<'a> = InWidth1 = None; APortOffsetsMap = (Map.empty) } - match comp.Type with - |Custom _ -> {s with APortOffsetsMap = reconstructCustomPortMap comp.SI (findrotatedportmap s R0) comp.W comp.H} - |_ -> {s with APortOffsetsMap = (findrotatedportmap s s.STransform)} + match comp.SI with + |[] -> {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 = reconstructCustomPortMap comp.SI (findrotatedportmap s R0) comp.W comp.H} //if custom has been altered, reconstruct based on SI member of component )) let symbolList = compIdsWithSymbols