From: miettinen Date: Mon, 14 Oct 2013 11:00:31 +0000 (+0000) Subject: Stock initial equation with spaces fix (refs #4468). X-Git-Tag: 1.8.1~238 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=b429f09ff4a8da0799667f5110aa5dcf4ebbd4fc;p=simantics%2Fsysdyn.git 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 --- 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())