Commit b8f6cac9 authored by Nico Mack's avatar Nico Mack

Set CoordinateState of connected system variable to state of initial

value
parent df3cf9ad
......@@ -135,7 +135,12 @@ public class PositionWidget extends PointingWidget implements InformationProvide
if ((systemVariables != null) && systemVariables.containsKey(this.variable.getName())) {
SpatialVariable spatial = Variable.castTo(systemVariables.get(this.variable.getName()), SpatialVariable.class);
if (spatial != null) {
Point initial = this.variable.getValue();
this.variable = spatial;
if (initial != null) {
this.variable.setValue(initial);
}
connected.add(spatial);
}
}
......
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