]> gerrit.simantics Code Review - simantics/platform.git/commit
Fixed InvertBasicExpressionVisitor.invert to keep inverted value type 86/1486/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:26:16 +0000 (00:26 +0200)
commit4f743d81482d51262a7bc07d2a4874cdd0856a17
tree307d2e90913e949b26d80f8ca51b60e29c0937e7
parent9db150ae67d60710a9eb932ceb2c1c227fc9fcff
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
bundles/org.simantics.modeling/src/org/simantics/modeling/InvertBasicExpressionVisitor.java