From 8a4295123360500e190ddfedd0f96f161a08d40e Mon Sep 17 00:00:00 2001 From: Tom Clarke Date: Sun, 27 Feb 2022 01:00:22 +0000 Subject: [PATCH] mend error in Sheet.isAllVisible --- src/Renderer/DrawBlock/Sheet.fs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Renderer/DrawBlock/Sheet.fs b/src/Renderer/DrawBlock/Sheet.fs index 2d03e0453..878232426 100644 --- a/src/Renderer/DrawBlock/Sheet.fs +++ b/src/Renderer/DrawBlock/Sheet.fs @@ -366,7 +366,11 @@ let isAllVisible (model: Model)(conns: ConnectionId list) (comps: ComponentId li |> List.fold (&&) true let cVisible = comps - |> List.map (Symbol.getOneBoundingBox model.Wire.Symbol) + |> List.collect (fun comp -> + if Map.containsKey comp model.Wire.Symbol.Symbols then + [Symbol.getOneBoundingBox model.Wire.Symbol comp] + else + []) |> List.map isBBoxAllVisible |> List.fold (&&) true wVisible && cVisible