changeset 4616:e285630569dc

Fix reference curve creation.
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Mon, 03 Dec 2012 10:52:25 +0100
parents c1df0dac140b
children 35dceb726fc4
files flys-artifacts/src/main/java/de/intevation/flys/utils/FLYSUtils.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/utils/FLYSUtils.java	Mon Dec 03 10:51:49 2012 +0100
+++ b/flys-artifacts/src/main/java/de/intevation/flys/utils/FLYSUtils.java	Mon Dec 03 10:52:25 2012 +0100
@@ -329,7 +329,7 @@
         if (locationStr == null || locationStr.length() == 0) {
             if (flys instanceof WINFOArtifact) {
                 WINFOArtifact winfo = (WINFOArtifact) flys;
-                if (winfo.getReferenceStartKm() != null) {
+                if (winfo.getReferenceStartKm() != null && winfo.getReferenceEndKms() != null) {
                     return new double[]
                         {
                             winfo.getReferenceStartKm().doubleValue(),

http://dive4elements.wald.intevation.org