mirror of https://github.com/rusefi/RomRaider.git
Fixed set value casting decimal numbers to integer
git-svn-id: http://svn.3splooges.com/romraider-arch/trunk@50 d2e2e1cd-ba16-0410-be16-b7c4453c7c2d
This commit is contained in:
parent
6384609fce
commit
5fa6d71e7f
|
@ -206,9 +206,13 @@ public class DataCell extends JLabel implements MouseListener, Serializable {
|
||||||
parser.initSymTab(); // clear the contents of the symbol table
|
parser.initSymTab(); // clear the contents of the symbol table
|
||||||
parser.addVariable("x", Double.parseDouble(input));
|
parser.addVariable("x", Double.parseDouble(input));
|
||||||
parser.parseExpression(table.getScale().getByteExpression());
|
parser.parseExpression(table.getScale().getByteExpression());
|
||||||
|
if (table.getStorageType() == Table.STORAGE_TYPE_FLOAT) {
|
||||||
|
this.setBinValue(parser.getValue());
|
||||||
|
} else {
|
||||||
this.setBinValue((int)Math.round(parser.getValue()));
|
this.setBinValue((int)Math.round(parser.getValue()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public Color getHighlightColor() {
|
public Color getHighlightColor() {
|
||||||
return highlightColor;
|
return highlightColor;
|
||||||
|
|
Loading…
Reference in New Issue