Mercurial > dive4elements > river
changeset 4417:d09dbff54e38
ExtremeCalculation: Resolve probably too nested break.
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Tue, 06 Nov 2012 06:37:34 +0100 |
parents | 73200f5462fa |
children | e0a355d0c771 |
files | flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/extreme/ExtremeCalculation.java |
diffstat | 1 files changed, 7 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/extreme/ExtremeCalculation.java Tue Nov 06 06:36:54 2012 +0100 +++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/extreme/ExtremeCalculation.java Tue Nov 06 06:37:34 2012 +0100 @@ -200,16 +200,21 @@ log.debug("km: " + km); } + boolean foundRange = false; + if (range == null || !range.inside(km)) { for (RangeWithValues r: ranges) { if (r.inside(km)) { range = r; + foundRange = true; break; } } // TODO: i18n - addProblem(km, "extreme.no.range.inner"); - continue; + if (!foundRange) { + addProblem(km, "extreme.no.range.inner"); + continue; + } } double [][] wqs = wst.interpolateTabulated(km);