]> gerrit.simantics Code Review - simantics/platform.git/commit
Fixed InvertBasicExpressionVisitor.invert to keep inverted value type 87/1487/1
authorTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Tue, 20 Feb 2018 22:26:16 +0000 (00:26 +0200)
committerTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Tue, 20 Feb 2018 22:40:25 +0000 (00:40 +0200)
commit161482b55e12906fb43ded5025a22b983bc75d3c
tree579657f114ddfb345b562204049da52ca7a3ced9
parentb5fe6cb785524ed852ec23c125a50fea34b4c6f5
Fixed InvertBasicExpressionVisitor.invert to keep inverted value type

Previously the code would convert all Number-values to Double instead of
passing the inverted value to Variable.setValue in the same type the
original non-inverted value was in.

refs #7777

Change-Id: I78771698d3e2222ede47969e3cceea2166c23a75
(cherry picked from commit 4f743d81482d51262a7bc07d2a4874cdd0856a17)
bundles/org.simantics.modeling/src/org/simantics/modeling/InvertBasicExpressionVisitor.java