From 606a8f75df4e01e825e6bf23532b71f98a53584b Mon Sep 17 00:00:00 2001 From: Tuukka Lehtonen Date: Wed, 14 Sep 2016 14:31:12 +0300 Subject: [PATCH] Sync git svn branch with SVN repository r33191. refs #6685 --- .../modeling/typicals/SyncTypicalTemplatesToInstances.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bundles/org.simantics.modeling/src/org/simantics/modeling/typicals/SyncTypicalTemplatesToInstances.java b/bundles/org.simantics.modeling/src/org/simantics/modeling/typicals/SyncTypicalTemplatesToInstances.java index 435d64473..56d61c868 100644 --- a/bundles/org.simantics.modeling/src/org/simantics/modeling/typicals/SyncTypicalTemplatesToInstances.java +++ b/bundles/org.simantics.modeling/src/org/simantics/modeling/typicals/SyncTypicalTemplatesToInstances.java @@ -437,7 +437,11 @@ public class SyncTypicalTemplatesToInstances extends WriteRequest { private boolean isSynchronizedConnector(ReadGraph graph, Resource templateConnection, Resource instanceConnector) throws DatabaseException { DiagramResource DIA = DiagramResource.getInstance(graph); Resource instanceConnection = graph.getPossibleObject(instanceConnector, DIA.IsConnectorOf); - return graph.hasStatement(instanceConnection, MOD.HasElementSource, templateConnection); + return graph.hasStatement(instanceConnection, MOD.HasElementSource, templateConnection) + // If the master connection has been removed, this is all that's left + // to identify a connection that at least was originally synchronized + // from the typical master to this instance. + || graph.hasStatement(instanceConnection, MOD.IsTemplatized); } /** -- 2.47.1