Mercurial > dive4elements > river
changeset 6454:e860fa106f56
issue1370: Now that the default first y axis is in cm, change default label.
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Wed, 26 Jun 2013 22:25:19 +0200 |
parents | f11165468f0a |
children | 201d90f56d98 |
files | artifacts/src/main/java/org/dive4elements/river/exports/ComputedDischargeCurveGenerator.java |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/exports/ComputedDischargeCurveGenerator.java Wed Jun 26 22:06:15 2013 +0200 +++ b/artifacts/src/main/java/org/dive4elements/river/exports/ComputedDischargeCurveGenerator.java Wed Jun 26 22:25:19 2013 +0200 @@ -96,7 +96,7 @@ D4EArtifact flys = (D4EArtifact) master; String unit = RiverUtils.getRiver(flys).getWstUnit().getName(); - if (pos == 1 && getCurrentGaugeDatum() != 0) + if (pos == 0 && getCurrentGaugeDatum() != 0) unit = "cm"; return msg(I18N_YAXIS_LABEL, I18N_YAXIS_LABEL_DEFAULT, new Object[] { unit });