Mercurial > dive4elements > river
changeset 261:f3ea644800c4
Fixed the location input. A range selection sets the correct location values
now.
flys-client/trunk@1876 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Tue, 10 May 2011 11:37:49 +0000 (2011-05-10) |
parents | dd1dad2ff94e |
children | 44a340c9becc |
files | flys-client/ChangeLog flys-client/src/main/java/de/intevation/flys/client/client/ui/LocationDistancePanel.java |
diffstat | 2 files changed, 9 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/flys-client/ChangeLog Tue May 10 10:57:57 2011 +0000 +++ b/flys-client/ChangeLog Tue May 10 11:37:49 2011 +0000 @@ -1,3 +1,9 @@ +2011-05-10 Raimund Renkert <rrenkert@intevation.de> + + * src/main/java/de/intevation/flys/client/client/ui/LocationDistancePanel.java: + Fixed the location input. A range selection sets the correct location values + now. + 2011-05-10 Raimund Renkert <rrenkert@intevation.de> * src/main/java/de/intevation/flys/client/client/ui/ParameterList.java,
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/LocationDistancePanel.java Tue May 10 10:57:57 2011 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/LocationDistancePanel.java Tue May 10 11:37:49 2011 +0000 @@ -197,6 +197,9 @@ } else { double[] selected; + Record r = e.getRecord(); + double min = r.getAttributeAsDouble("from"); + double max = r.getAttributeAsDouble("to"); if (getLocationValues() != null) { double[] val = getLocationValues(); selected = new double[val.length + 2];