Mercurial > dive4elements > river
changeset 6483:0534ff91e499
issue1370: ExtremeWQCurveGenerator: correct second y axis label (cm).
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Thu, 27 Jun 2013 12:03:38 +0200 |
parents | b07cfc319781 |
children | 5b6632abd8e6 |
files | artifacts/src/main/java/org/dive4elements/river/exports/extreme/ExtremeWQCurveGenerator.java |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/exports/extreme/ExtremeWQCurveGenerator.java Thu Jun 27 18:14:49 2013 +0200 +++ b/artifacts/src/main/java/org/dive4elements/river/exports/extreme/ExtremeWQCurveGenerator.java Thu Jun 27 12:03:38 2013 +0200 @@ -218,8 +218,9 @@ D4EArtifact flys = (D4EArtifact) master; String unit = RiverUtils.getRiver(flys).getWstUnit().getName(); - if (pos == 0 && getCurrentGaugeDatum() != 0) + if (pos == 0) { unit = "cm"; + } return msg(I18N_YAXIS_LABEL, I18N_YAXIS_LABEL_DEFAULT, new Object[] { unit }); }