From b12cead53c25d1aa84d5727bcd7fbf9816c5de26 Mon Sep 17 00:00:00 2001 From: lempinen Date: Fri, 28 Oct 2011 09:16:29 +0000 Subject: [PATCH] Fixing Sheet Ranges git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@23085 ac1ea38d-2e2b-0410-8846-a27921b304fc --- .../src/org/simantics/sysdyn/representation/Sheet.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/org.simantics.sysdyn/src/org/simantics/sysdyn/representation/Sheet.java b/org.simantics.sysdyn/src/org/simantics/sysdyn/representation/Sheet.java index 9571a065..00fcf7cc 100644 --- a/org.simantics.sysdyn/src/org/simantics/sysdyn/representation/Sheet.java +++ b/org.simantics.sysdyn/src/org/simantics/sysdyn/representation/Sheet.java @@ -116,7 +116,7 @@ public class Sheet extends org.simantics.sysdyn.representation.Variable { if(array[0].length > 1) { // Has two dimensions - clazz.append("Real[" + array.length + ", " + array[0].length + "] "); + clazz.append("constant Real[" + array.length + ", " + array[0].length + "] "); clazz.append(possibleRange.replace(":", "_") + " = {"); for(int i = 0; i < array.length; i++) { clazz.append("{"); @@ -132,7 +132,7 @@ public class Sheet extends org.simantics.sysdyn.representation.Variable { clazz.append("};\n"); } else { // Has one dimension - clazz.append("Real[" + array.length + "] "); + clazz.append("constant Real[" + array.length + "] "); clazz.append(possibleRange.replace(":", "_") + " = {"); for(int i = 0; i < array.length; i++) { clazz.append(array[i][0]); -- 2.47.1