From: lempinen Date: Tue, 22 Feb 2011 10:57:09 +0000 (+0000) Subject: git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@19815 ac1ea38d-2e2b... X-Git-Tag: 2011-04-05-db-merge-trunk~10 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=fb148e11d90fa8c93f71e93bc787a19859479106;p=simantics%2Fsysdyn.git git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@19815 ac1ea38d-2e2b-0410-8846-a27921b304fc --- diff --git a/org.simantics.sysdyn/src/org/simantics/sysdyn/mdlImport/MdlParser.java b/org.simantics.sysdyn/src/org/simantics/sysdyn/mdlImport/MdlParser.java index 3dcb3560..dd73915f 100644 --- a/org.simantics.sysdyn/src/org/simantics/sysdyn/mdlImport/MdlParser.java +++ b/org.simantics.sysdyn/src/org/simantics/sysdyn/mdlImport/MdlParser.java @@ -70,7 +70,7 @@ public class MdlParser { try { String line = null; //not declared within while loop - // See if the document is encoded with UTF-8 + // See if the document is encoded with UTF-8. It will be marked with {UTF-8} on the first line input.mark(30); if (( line = input.readLine()) != null && line.contains("{UTF-8}")){ @@ -454,9 +454,9 @@ public class MdlParser { connection = new Flow(); if(connectionData[4].equals("100")) { // Flip the flow - Element temp = connection.getStart(); - connection.setStart(connection.getEnd()); - connection.setEnd(temp); + Element temp = start; + start = end; + end = temp; } } connection.setStart(start);