Dear users, Please note that, from Monday, August 16, 2019, RSA keys shorter than 2048bit will no longer be accepted for security reasons. Please update your keys as needed before this date. If you need assistance with regard to this process, please contact sia@list.lu

Thank you for your understanding.

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