[PATCH 1 of 2] issue1370: ExtremeWQCurveGenerator: correct second y axis label (cm)

Wald Commits scm-commit at wald.intevation.org
Thu Jun 27 21:49:40 CEST 2013


# HG changeset patch
# User Felix Wolfsteller <felix.wolfsteller at intevation.de>
# Date 1372327418 -7200
# Node ID 0534ff91e499a74a9687c4212fde435b33bd31e8
# Parent  b07cfc319781439a4e0b118ce267558e3a537676
issue1370: ExtremeWQCurveGenerator: correct second y axis label (cm).

diff -r b07cfc319781 -r 0534ff91e499 artifacts/src/main/java/org/dive4elements/river/exports/extreme/ExtremeWQCurveGenerator.java
--- 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 });
     }


More information about the Dive4elements-commits mailing list