changeset 3383:dc48bc58102f

commit omitted change. flys-client/trunk@5127 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Wed, 25 Jul 2012 12:39:13 +0000
parents c20d5794a93f
children a6b7f0585761
files flys-client/src/main/java/de/intevation/flys/client/shared/model/DefaultArtifactDescription.java
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/flys-client/src/main/java/de/intevation/flys/client/shared/model/DefaultArtifactDescription.java	Wed Jul 25 12:37:10 2012 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/shared/model/DefaultArtifactDescription.java	Wed Jul 25 12:39:13 2012 +0000
@@ -116,6 +116,7 @@
     }
 
 
+    /** Get [min,max] of data items. */
     public double[] getKMRange() {
         Double[] mm = new Double[2];
 
@@ -126,14 +127,14 @@
                 String dataName = data.getLabel();
                 DataItem item   = data.getItems()[0];
 
-                if (dataName.equals("ld_from")) {
+                if (dataName.equals("ld_from") || dataName.equals("from")) {
                     Double d = DoubleUtils.getDouble(item.getStringValue());
 
                     if (d != null) {
                         mm[0] = d;
                     }
                 }
-                else if (dataName.equals("ld_to")) {
+                else if (dataName.equals("ld_to") || dataName.equals("to")) {
                     Double d = DoubleUtils.getDouble(item.getStringValue());
 
                     if (d != null) {

http://dive4elements.wald.intevation.org