From 32ed4bfe1c1caa6843695eafda0b284d359312b0 Mon Sep 17 00:00:00 2001 From: villberg Date: Tue, 22 Jul 2014 12:12:46 +0000 Subject: [PATCH] refs #5122 git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@29936 ac1ea38d-2e2b-0410-8846-a27921b304fc --- .../ui/editor/participant/SysdynConnectionBuilder.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/editor/participant/SysdynConnectionBuilder.java b/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/editor/participant/SysdynConnectionBuilder.java index 5f3c3259..e4467d9f 100644 --- a/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/editor/participant/SysdynConnectionBuilder.java +++ b/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/editor/participant/SysdynConnectionBuilder.java @@ -66,7 +66,10 @@ public class SysdynConnectionBuilder extends ConnectionBuilder{ */ public void create(WriteGraph graph, ConnectionJudgement judgment, Deque controlPoints, TerminalInfo startTerminal, TerminalInfo endTerminal) throws DatabaseException { - + + if(startTerminal == null) return; + if(endTerminal == null) return; + graph.markUndoPoint(); // If needs a valve, we will create two separate connections -- 2.47.1