]> gerrit.simantics Code Review - simantics/sysdyn.git/commitdiff
Fixed Stock initialization with single number fill(number, size) to use dynamic Enume...
authorlempinen <lempinen@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Fri, 15 Feb 2013 14:59:51 +0000 (14:59 +0000)
committerlempinen <lempinen@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Fri, 15 Feb 2013 14:59:51 +0000 (14:59 +0000)
git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@26786 ac1ea38d-2e2b-0410-8846-a27921b304fc

org.simantics.sysdyn/src/org/simantics/sysdyn/representation/expressions/StockExpression.java

index 19f5620160745fe1a8f39086dea03b990bf75a7c..13ee73eace567622bb36da4dbb05d7eb39260431 100644 (file)
@@ -71,7 +71,7 @@ public class StockExpression extends Expression {
             } else {\r
                 b.append(" zeros(");\r
                 for(int i = 0; i < enumerations.size(); i++) {\r
-                    b.append(enumerations.get(i).getEnumerationIndexes().size());\r
+                    b.append(enumerations.get(i).getName() + ".size");\r
                     if(i != enumerations.size() - 1)\r
                         b.append(", ");\r
                 }\r