Mercurial > dive4elements > river
changeset 9207:559775e2f53c
Merge
author | mschaefer |
---|---|
date | Mon, 02 Jul 2018 19:12:54 +0200 |
parents | 3dae6b78e1da (current diff) b38be7ea53e2 (diff) |
children | 53cc5b496692 |
files | |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/common/GaugeMainValueFinder.java Mon Jul 02 19:01:09 2018 +0200 +++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/common/GaugeMainValueFinder.java Mon Jul 02 19:12:54 2018 +0200 @@ -38,7 +38,7 @@ private final MainValueTypeKey keyType; - private final String approxPrefix = "ca."; // "\u2248" geht wohl nicht + private final String approxPrefix = "\u2248"; private Entry<Double, MainValue> foundCeiling; @@ -87,7 +87,8 @@ * (name for an exact match, circa expression for +/- 10% match, less-than/between/greater-than expression otherwise) */ public String findZoneName(final double value) { - if (!this.findValue(value)) + this.findValue(value); + if (Double.isNaN(this.foundRelativeDistance)) return ""; // Clearly below or just (max. 10%) below lowest named value