changeset 9264:baef46792354

Explicitely checking for ld_step, in order to misuse this component (i.e. if there are additional data items)
author gernotbelger
date Tue, 17 Jul 2018 19:48:23 +0200
parents abf14917be32
children e5367900dd6d
files artifacts/src/main/java/org/dive4elements/river/artifacts/states/ComputationRangeState.java
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/states/ComputationRangeState.java	Tue Jul 17 19:48:18 2018 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/states/ComputationRangeState.java	Tue Jul 17 19:48:23 2018 +0200
@@ -88,11 +88,12 @@
             final Element max = createItem(cr, new String[] { "max", new Double(maxVal).toString() });
 
             return new Element[] { max };
-        } else {
+        } else if (name.contentEquals("ld_step")) {
             final Element step = createItem(cr, new String[] { "step", String.valueOf(getDefaultStep()) });
             return new Element[] { step };
+        } else {
+            return new Element[] {};
         }
-
     }
 
     @Override

http://dive4elements.wald.intevation.org