changeset 5683:545a6ace9a19

Fixed label for 'W' axis in middle bed height generator.
author Raimund Renkert <rrenkert@intevation.de>
date Fri, 12 Apr 2013 15:08:14 +0200
parents b536c0e7abd7
children 88cbe798cbab a3f7da9bf0d1
files flys-artifacts/src/main/java/de/intevation/flys/exports/MiddleBedHeightGenerator.java
diffstat 1 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/exports/MiddleBedHeightGenerator.java	Fri Apr 12 14:51:29 2013 +0200
+++ b/flys-artifacts/src/main/java/de/intevation/flys/exports/MiddleBedHeightGenerator.java	Fri Apr 12 15:08:14 2013 +0200
@@ -120,7 +120,13 @@
             label = getHAxisLabel();
         }
         else if (index == YAXIS.W.idx) {
-            label = msg(I18N_W_YAXIS_LABEL, I18N_W_YAXIS_LABEL_DEFAULT);
+           FLYSArtifact flys = (FLYSArtifact) master;
+           String unit = FLYSUtils.getRiver(flys).getWstUnit().getName();
+
+           label = msg(
+                I18N_YAXIS_LABEL,
+                I18N_YAXIS_LABEL_DEFAULT,
+                new Object[] { unit });
         }
         else if (index == YAXIS.P.idx) {
             label = msg(I18N_P_YAXIS_LABEL, I18N_P_YAXIS_LABEL_DEFAULT);

http://dive4elements.wald.intevation.org