changeset 6473:70185cd48058

FixWQCurveGenerator: Fix second y axis label.
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Thu, 27 Jun 2013 11:53:38 +0200
parents 4bbad31c8616
children 6aac9ad1f8a8
files artifacts/src/main/java/org/dive4elements/river/exports/fixings/FixWQCurveGenerator.java
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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 });
     }

http://dive4elements.wald.intevation.org