Skip to content

Commit

Permalink
fix: Port spread not correct for equal case (#183)
Browse files Browse the repository at this point in the history
  • Loading branch information
ewuerger authored Jan 21, 2025
2 parents 9961e77 + 3503a91 commit a5669e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/capellambse_context_diagrams/collectors/exchanges.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ def get_left_and_right(self) -> None:

port_spread = len(self.outgoing_edges) - len(self.incoming_edges)
_port_spread = len(self.incoming_edges) - len(self.outgoing_edges)
if port_spread <= _port_spread:
if port_spread < _port_spread:
self.incoming_edges, self.outgoing_edges = (
self.outgoing_edges,
self.incoming_edges,
Expand Down

0 comments on commit a5669e3

Please sign in to comment.