Mercurial > dive4elements > river
changeset 6312:ac99cade71dd
Assume that the result is calculated if the wUnit is meter
author | Andre Heinecke <aheinecke@intevation.de> |
---|---|
date | Wed, 12 Jun 2013 17:46:56 +0200 |
parents | c4c7ed0e5ffc |
children | 38a3f021fd97 |
files | artifacts/src/main/java/org/dive4elements/river/exports/ComputedDischargeCurveExporter.java |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/exports/ComputedDischargeCurveExporter.java Wed Jun 12 17:46:22 2013 +0200 +++ b/artifacts/src/main/java/org/dive4elements/river/exports/ComputedDischargeCurveExporter.java Wed Jun 12 17:46:56 2013 +0200 @@ -273,7 +273,9 @@ source.addMetaData("range", Formatter.getCalculationKm(context.getMeta()).format(kms[0])); - if (isCalculated) { + // When w is in meter we are not at a gauge so our values + // must be calculated + if (isCalculated || wUnit.equals("m")) { source.addMetaData("calculation", Resources.getMsg( locale, PDF_HEADER_CALC_MODE,