X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.modeling%2Fscl%2FSimantics%2FDiagram.scl;fp=bundles%2Forg.simantics.modeling%2Fscl%2FSimantics%2FDiagram.scl;h=451bda827d64c910d20f328689d72406bc46136a;hp=14a558bec05c0b549ddd5600e4c3ebec224e6cab;hb=0f7642b3bd653687a880733e4673b450e3612c6c;hpb=2ebe792aa45ea728815c82dc54e08d83b7de0cd5 diff --git a/bundles/org.simantics.modeling/scl/Simantics/Diagram.scl b/bundles/org.simantics.modeling/scl/Simantics/Diagram.scl index 14a558bec..451bda827 100644 --- a/bundles/org.simantics.modeling/scl/Simantics/Diagram.scl +++ b/bundles/org.simantics.modeling/scl/Simantics/Diagram.scl @@ -512,10 +512,7 @@ setElements (DiagramInfo diagram configuration componentMap) joinMap elementSpec Just connection createNode connection (Terminal elementName terminal) = do element = newOrMappedElement elementName - if terminal == DIA.Flag.ConnectionPoint then - createConnector connection element terminal DIA.HasPlainConnector - else - createConnector connection element terminal DIA.HasPlainConnector + createConnector connection element terminal DIA.HasPlainConnector createNode connection (RouteLine isHorizontal position) = do newEntity [ hasName (freshElementName ()), @@ -552,7 +549,7 @@ setElements (DiagramInfo diagram configuration componentMap) joinMap elementSpec claim a DIA.AreConnected b // Returns (connectionRelation :: Maybe Resource, connector attachment relation :: Resource) resolveAttachmentRelation element terminal defaultAttachmentRelation = - if terminal == DIA.Flag.ConnectionPoint then + if isSubrelationOf terminal DIA.Flag.ConnectionPoint then (Nothing, flagTypeToAttachmentRelation element) else match possibleObject terminal MOD.DiagramConnectionRelationToConnectionRelation with