From: villberg Date: Tue, 22 Jul 2014 12:12:46 +0000 (+0000) Subject: refs #5122 X-Git-Tag: v1.29.0~233 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=32ed4bfe1c1caa6843695eafda0b284d359312b0;p=simantics%2Fsysdyn.git refs #5122 git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@29936 ac1ea38d-2e2b-0410-8846-a27921b304fc --- 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