Commit c912aa61 authored by Valérie Maquil's avatar Valérie Maquil

some hack with the initial value in the value widget - needs some reviewing

parent c5dea413
......@@ -94,7 +94,8 @@ public final class ValueWidget extends BaseWidget implements InformationProvider
this.baseValue = getVariable().getValue();
getVariable().setValue(0d);
} else {
this.baseValue = Double.NaN;
// this.baseValue = Double.NaN;
this.baseValue = getVariable().getValue();
}
dialAngle = lowerStopAngle;
......@@ -117,10 +118,16 @@ public final class ValueWidget extends BaseWidget implements InformationProvider
super.actionLift(tangibleObject);
// set to 0 only if placing widget
if (!modifyValueOnRotation) {
getVariable().setValue(0d);
}
else {
getVariable().setValue(baseValue);
}
}
@Override
......
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