diff -r 349308e84eeb -r 772103b14c18 eric6/Graphics/AssociationItem.py --- a/eric6/Graphics/AssociationItem.py Mon Apr 12 19:05:23 2021 +0200 +++ b/eric6/Graphics/AssociationItem.py Mon Apr 12 19:21:40 2021 +0200 @@ -60,10 +60,7 @@ @param parent reference to the parent object @type QGraphicsItem """ - if assocType == Normal: - arrowType = NormalArrow - arrowFilled = True - elif assocType == Imports: + if assocType in (Normal, Imports): arrowType = NormalArrow arrowFilled = True elif assocType == Generalisation: @@ -224,9 +221,7 @@ self.regionA = East elif self.regionA == SouthEast: self.regionA = South - elif self.regionA == SouthWest: - self.regionA = West - elif self.regionA == Center: + elif self.regionA in (SouthWest, Center): self.regionA = West self.__updateEndPoint(self.regionA, True) @@ -241,9 +236,7 @@ self.regionB = East elif self.regionB == SouthEast: self.regionB = South - elif self.regionB == SouthWest: - self.regionB = West - elif self.regionB == Center: + elif self.regionB in (SouthWest, Center): self.regionB = West self.__updateEndPoint(self.regionB, False)