[Dive4elements-commits] [PATCH 1 of 2] FixWQCurveGenerator: Fix second y axis label

Wald Commits scm-commit at wald.intevation.org
Thu Jun 27 11:52:50 CEST 2013


# HG changeset patch
# User Felix Wolfsteller <felix.wolfsteller at intevation.de>
# Date 1372326818 -7200
# Node ID 70185cd480581ce8da7bb31643265bc7e8a0e92b
# Parent  4bbad31c86165b2ae083e9f67c82b371d2dcf611
FixWQCurveGenerator: Fix second y axis label.

diff -r 4bbad31c8616 -r 70185cd48058 artifacts/src/main/java/org/dive4elements/river/exports/fixings/FixWQCurveGenerator.java
--- a/artifacts/src/main/java/org/dive4elements/river/exports/fixings/FixWQCurveGenerator.java	Thu Jun 27 10:47:31 2013 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/exports/fixings/FixWQCurveGenerator.java	Thu Jun 27 11:53:38 2013 +0200
@@ -674,8 +674,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