From 781a47236d02ed85976c3003df5e91db22bbbf0c Mon Sep 17 00:00:00 2001 From: Giorgos Vyronos Date: Sat, 26 Mar 2022 11:12:33 +0000 Subject: [PATCH] Fixed issue where rightangle 3,5 segment wasn't plotted equidistantly. --- src/Renderer/DrawBlock/BusWire.fs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Renderer/DrawBlock/BusWire.fs b/src/Renderer/DrawBlock/BusWire.fs index 17654cc..94f6cfd 100644 --- a/src/Renderer/DrawBlock/BusWire.fs +++ b/src/Renderer/DrawBlock/BusWire.fs @@ -446,8 +446,8 @@ let initialWireVerticesFromPorts [ {X = startX; Y = startY}; {X = startX + Wire.stickLength; Y = startY}; - {X = startX + Wire.stickLength; Y = startY + 1.5 * Wire.stickLength}; - {X = endX; Y = startY + 1.5 * Wire.stickLength}; + {X = startX + Wire.stickLength; Y = (startY + endY)/2.0}; + {X = endX; Y = (startY + endY)/2.0}; {X = endX; Y = endY - Wire.stickLength}; {X = endX; Y = endY - Wire.stickLength}; {X = endX; Y = endY - Wire.stickLength};