Skip to content

Commit

Permalink
DYN-7558: Fix CER crash from Dynamo 3.3. (#15575)
Browse files Browse the repository at this point in the history
  • Loading branch information
reddyashish authored Oct 30, 2024
1 parent 42a72de commit fa67685
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Engine/GraphLayout/GraphLayout.cs
Original file line number Diff line number Diff line change
Expand Up @@ -834,16 +834,15 @@ public Edge(Guid startId, Guid endId, double startX, double startY, double endX,
if(StartNode!= null)
{
StartNode.RightEdges.Add(this);
NodeStartOffsetY = startY - StartNode.Y;
}

EndNode = OwnerGraph.FindNode(endId);
if (EndNode != null)
{
EndNode.LeftEdges.Add(this);
NodeEndOffsetY = endY - EndNode.Y;
}

NodeStartOffsetY = startY - StartNode.Y;
NodeEndOffsetY = endY - EndNode.Y;
}
}
}

0 comments on commit fa67685

Please sign in to comment.