From: jkauttio Date: Wed, 30 Apr 2014 12:08:28 +0000 (+0000) Subject: Remove a duplicate class name from ModelicaWriter X-Git-Tag: 1.8.1~74 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=ccc7352fe3335532131946f1b7079894719c499e;p=simantics%2Fsysdyn.git Remove a duplicate class name from ModelicaWriter fixes #4852 git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@29400 ac1ea38d-2e2b-0410-8846-a27921b304fc --- diff --git a/org.simantics.sysdyn/src/org/simantics/sysdyn/modelica/ModelicaWriter.java b/org.simantics.sysdyn/src/org/simantics/sysdyn/modelica/ModelicaWriter.java index 1b191676..e0e64be4 100644 --- a/org.simantics.sysdyn/src/org/simantics/sysdyn/modelica/ModelicaWriter.java +++ b/org.simantics.sysdyn/src/org/simantics/sysdyn/modelica/ModelicaWriter.java @@ -248,7 +248,7 @@ public class ModelicaWriter { String className = mt != null ? (mt.getName().replace(" ", "")) : null; if(className != null) - b.append("class "+className+"\n").append(className); + b.append("class "+className+"\n"); // Add spreadsheets to all modules and model. Model is "inner" and modules "outer" String globalStatus = mt != null ? "outer" : "inner";