[Dive4elements-commits] [PATCH] Fixed label for 'W' axis in middle bed height generator

Wald Commits scm-commit at wald.intevation.org
Fri Apr 12 15:08:40 CEST 2013


# HG changeset patch
# User Raimund Renkert <rrenkert at intevation.de>
# Date 1365772094 -7200
# Node ID 545a6ace9a19b243b7560d6922153b6b089f1851
# Parent  b536c0e7abd72fbac150c83930712b3b656d88f4
Fixed label for 'W' axis in middle bed height generator.

diff -r b536c0e7abd7 -r 545a6ace9a19 flys-artifacts/src/main/java/de/intevation/flys/exports/MiddleBedHeightGenerator.java
--- 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);


More information about the Dive4elements-commits mailing list