Skip to content

Commit

Permalink
Merge pull request #47 from thiblege/main
Browse files Browse the repository at this point in the history
fix bug when an elem have a relation with tags and other withour
  • Loading branch information
DrMarkusVoss authored Oct 17, 2023
2 parents 4772bfe + 5df8c5b commit 6b453a6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pumla_macros_global.puml
Original file line number Diff line number Diff line change
Expand Up @@ -762,6 +762,8 @@ PUMLAInterface($ifname, $ifalias, $elemalias, $type)
' to the diagram
!unquoted procedure PUMLAPutRelationsForElement($elemalias, $reltype="", $tag="", $value="")
!foreach $el in $allrelations.relations
!$tv_found = "NO"

!if ($reltype == "")
!$reltype = $el.reltype
!endif
Expand All @@ -783,7 +785,7 @@ PUMLAInterface($ifname, $ifalias, $elemalias, $type)
!endif
!endfor

!if ((($el.start == $elemalias) || ($el.end == $elemalias)) && ($el.reltype == $reltype))
!if ((($el.start == $elemalias) || ($el.end == $elemalias)) && ($el.reltype == $reltype) && (($tag == "") || ($tv_found == "YES")))
' make sure to not put the same relation twice
!if (%not(%variable_exists($$el.id)))
PUMLAPutRelation($el.id)
Expand Down

0 comments on commit 6b453a6

Please sign in to comment.