From fb148e11d90fa8c93f71e93bc787a19859479106 Mon Sep 17 00:00:00 2001 From: lempinen Date: Tue, 22 Feb 2011 10:57:09 +0000 Subject: [PATCH] git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@19815 ac1ea38d-2e2b-0410-8846-a27921b304fc --- .../src/org/simantics/sysdyn/mdlImport/MdlParser.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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); -- 2.47.1