changeset 9336:1899595a8070

Fixed: corrected error condition
author mschaefer
date Mon, 30 Jul 2018 08:04:45 +0200
parents 7dc238bd062c
children 66c7f2defc80
files artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/tkhcalculation/FlowVelocityModelKmValueFinder.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/tkhcalculation/FlowVelocityModelKmValueFinder.java	Mon Jul 30 08:03:46 2018 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/tkhcalculation/FlowVelocityModelKmValueFinder.java	Mon Jul 30 08:04:45 2018 +0200
@@ -306,7 +306,7 @@
 
         final boolean found = doFindKmQValues(km, q);
 
-        if (this.problems != null) {
+        if (!found && (this.problems != null)) {
 
             this.problems.addProblem(km, "flowvelocitymodelkmvaluefinder.missing");
 

http://dive4elements.wald.intevation.org