Commit 1a480ac5 authored by Nico Mack's avatar Nico Mack

Fixed a bug with preslection of SelectorWidget

EquationSystem now lists outputs not being assigned to an equation
parent 52cd22f6
......@@ -512,7 +512,11 @@ public class EquationSystemBuilder {
if (!this.allOutputsAssigned()) {
LOGGER.warn("Not all defined outputs are assigned to an equation!"); //$NON-NLS-1$
List<String> assignedOutputs = new ArrayList<>();
LOGGER.warn("Not all defined outputs are assigned to an equation! => {}", assignedOutputs); //$NON-NLS-1$
......@@ -191,8 +191,10 @@ public class SelectorWidget extends ValueWidget {
public List<Variable<?>> connectWithSystemVariables(Map<String, Variable<?>> systemVariables) {
List<Variable<?>> connected = super.connectWithSystemVariables(systemVariables);
if (presetPosition != NONE) {
if ((presetPosition != NONE) && connected.contains(variable)) {
variable.setValue((double) presetPosition);
return connected;
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