diff 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
line wrap: on
line diff
--- 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];

http://dive4elements.wald.intevation.org