]> gerrit.simantics Code Review - simantics/sysdyn.git/commitdiff
Stock initial equation with spaces fix (refs #4468).
authormiettinen <miettinen@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Mon, 14 Oct 2013 11:00:31 +0000 (11:00 +0000)
committermiettinen <miettinen@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Mon, 14 Oct 2013 11:00:31 +0000 (11:00 +0000)
git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@27976 ac1ea38d-2e2b-0410-8846-a27921b304fc

org.simantics.sysdyn/src/org/simantics/sysdyn/representation/Stock.java

index 77b07ae5a8b6ad0c8aa3ce55cacccb34de9bd836..efa2f2dbe66796331ee9574869bdaab57d7326a0 100644 (file)
@@ -67,7 +67,7 @@ public class Stock extends IndependentVariable {
         } else {\r
             // Start parameter is used. Parameter guarantees that there is only one expression.\r
             StockExpression e = (StockExpression)getExpressions().get(0);\r
-            String initialEquation = e.getExpression();\r
+            String initialEquation = e.getModelicaExpression();\r
             initialEquation = SheetFormatUtils.reformatSheetReferences(this, initialEquation);\r
 \r
             if(getArrayIndexes() != null && !getArrayIndexes().isEmpty())\r