Commit 9d4f6a07 authored by Nico Mack's avatar Nico Mack

Minor bug fixes

parent 39cb2f5e
...@@ -297,6 +297,7 @@ public class NumericalVariable extends Variable<Double> { ...@@ -297,6 +297,7 @@ public class NumericalVariable extends Variable<Double> {
public void setMinValue(double value) { public void setMinValue(double value) {
this.minValue = value; this.minValue = value;
this.valueRange = getValueRange(this.minValue, this.maxValue); this.valueRange = getValueRange(this.minValue, this.maxValue);
this.normalizedValue = normalizeValue(this.value);
} }
// --------------------------------------------------------------------------- // ---------------------------------------------------------------------------
...@@ -322,6 +323,7 @@ public class NumericalVariable extends Variable<Double> { ...@@ -322,6 +323,7 @@ public class NumericalVariable extends Variable<Double> {
public void setMaxValue(double value) { public void setMaxValue(double value) {
this.maxValue = value; this.maxValue = value;
this.valueRange = getValueRange(this.minValue, this.maxValue); this.valueRange = getValueRange(this.minValue, this.maxValue);
this.normalizedValue = normalizeValue(this.value);
} }
// --------------------------------------------------------------------------- // ---------------------------------------------------------------------------
......
...@@ -179,7 +179,7 @@ public class ArcGraph extends ValueCorona { ...@@ -179,7 +179,7 @@ public class ArcGraph extends ValueCorona {
borderStroke = (strokeWidth > 0) ? new BasicStroke(strokeWidth) : null; borderStroke = (strokeWidth > 0) ? new BasicStroke(strokeWidth) : null;
this.setInformation((relative) ? this.reference : this.variable.getMinValue()); this.setInformation((relative) ? this.reference : this.variable.getValue());
} }
// --------------------------------------------------------------------------- // ---------------------------------------------------------------------------
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment