# HG changeset patch # User Felix Wolfsteller # Date 1372278319 -7200 # Node ID e860fa106f5620a7be48c8079fcb26b3d52cd005 # Parent f11165468f0af6e046538868464a330c7e88d22d issue1370: Now that the default first y axis is in cm, change default label. diff -r f11165468f0a -r e860fa106f56 artifacts/src/main/java/org/dive4elements/river/exports/ComputedDischargeCurveGenerator.java --- 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 });