# HG changeset patch # User Felix Wolfsteller # Date 1354528345 -3600 # Node ID e285630569dcecdeca1339e09a0e04c41f8f848a # Parent c1df0dac140bd8e0ca16e1b73882c127684fa5ac Fix reference curve creation. diff -r c1df0dac140b -r e285630569dc flys-artifacts/src/main/java/de/intevation/flys/utils/FLYSUtils.java --- 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(),