Mercurial > dive4elements > river
comparison flys-client/src/main/java/de/intevation/flys/client/client/ui/LocationDistancePanel.java @ 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 |
parents | 385e9368ffcd |
children | f56523bf4c55 |
comparison
equal
deleted
inserted
replaced
260:dd1dad2ff94e | 261:f3ea644800c4 |
---|---|
195 double max = r.getAttributeAsDouble("to"); | 195 double max = r.getAttributeAsDouble("to"); |
196 setDistanceValues(min, max); | 196 setDistanceValues(min, max); |
197 } | 197 } |
198 else { | 198 else { |
199 double[] selected; | 199 double[] selected; |
200 Record r = e.getRecord(); | |
201 double min = r.getAttributeAsDouble("from"); | |
202 double max = r.getAttributeAsDouble("to"); | |
200 if (getLocationValues() != null) { | 203 if (getLocationValues() != null) { |
201 double[] val = getLocationValues(); | 204 double[] val = getLocationValues(); |
202 selected = new double[val.length + 2]; | 205 selected = new double[val.length + 2]; |
203 for(int i = 0; i < val.length; i++){ | 206 for(int i = 0; i < val.length; i++){ |
204 selected[i] = val[i]; | 207 selected[i] = val[i]; |