Skip to content

Commit

Permalink
fix regression introduced in f99780c
Browse files Browse the repository at this point in the history
  • Loading branch information
landam committed Sep 12, 2024
1 parent 2332423 commit 3a066a3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions gui/wxpython/gmodeler/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -941,8 +941,9 @@ def GetRelations(self, fdir=None):

result = []
for rel in self.rels:
if fdir == "from" and rel.GetFrom() == self:
result.append(rel)
if fdir == "from":
if rel.GetFrom() == self:
result.append(rel)
elif rel.GetTo() == self:
result.append(rel)

Expand Down

0 comments on commit 3a066a3

Please sign in to comment.