]> gerrit.simantics Code Review - simantics/sysdyn.git/commitdiff
Validate units of lookup tables (fixes #4316)
authorlempinen <lempinen@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Thu, 6 Jun 2013 06:20:17 +0000 (06:20 +0000)
committerlempinen <lempinen@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Thu, 6 Jun 2013 06:20:17 +0000 (06:20 +0000)
git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@27509 ac1ea38d-2e2b-0410-8846-a27921b304fc

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

index 2343eb8cb04d8fbfd92f10572210d8b9fe3d7acb..78d90d96f158f0c4c04d629ae5c61ccb341956ea 100644 (file)
@@ -56,7 +56,7 @@ public class WithLookupExpression extends Expression {
         \r
         String result = UnitUtils.expressionUnitsValid(graph, model, parent.getParentConfiguration(), equation);\r
         if(result == null) {\r
-            result = UnitUtils.expressionUnitsValid(graph, model, parent.getParentConfiguration(), equation);\r
+            result = UnitUtils.matchUnits(graph, model, parent.getParentConfiguration(), parent.getUnit(), lookupTable);\r
         }\r
         \r
         return result;\r