From b429f09ff4a8da0799667f5110aa5dcf4ebbd4fc Mon Sep 17 00:00:00 2001 From: miettinen Date: Mon, 14 Oct 2013 11:00:31 +0000 Subject: [PATCH] Stock initial equation with spaces fix (refs #4468). git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@27976 ac1ea38d-2e2b-0410-8846-a27921b304fc --- .../src/org/simantics/sysdyn/representation/Stock.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.simantics.sysdyn/src/org/simantics/sysdyn/representation/Stock.java b/org.simantics.sysdyn/src/org/simantics/sysdyn/representation/Stock.java index 77b07ae5..efa2f2db 100644 --- a/org.simantics.sysdyn/src/org/simantics/sysdyn/representation/Stock.java +++ b/org.simantics.sysdyn/src/org/simantics/sysdyn/representation/Stock.java @@ -67,7 +67,7 @@ public class Stock extends IndependentVariable { } else { // Start parameter is used. Parameter guarantees that there is only one expression. StockExpression e = (StockExpression)getExpressions().get(0); - String initialEquation = e.getExpression(); + String initialEquation = e.getModelicaExpression(); initialEquation = SheetFormatUtils.reformatSheetReferences(this, initialEquation); if(getArrayIndexes() != null && !getArrayIndexes().isEmpty()) -- 2.47.1