Mercurial > dive4elements > river
changeset 6634:b1e66ea7fc2b
Fix Waterlevel description for issue1404
There might be a case for the wq_single description instead of
getValueFromWQ but this works for a single W value and multiple
W values and was the code formerly used for PDF export.
author | Andre Heinecke <aheinecke@intevation.de> |
---|---|
date | Mon, 22 Jul 2013 17:40:41 +0200 |
parents | 0e1f142af397 |
children | 3aa6c1f5ddc3 |
files | artifacts/src/main/java/org/dive4elements/river/exports/WaterlevelExporter.java |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/exports/WaterlevelExporter.java Mon Jul 22 11:18:26 2013 +0200 +++ b/artifacts/src/main/java/org/dive4elements/river/exports/WaterlevelExporter.java Mon Jul 22 17:40:41 2013 +0200 @@ -637,7 +637,9 @@ colDesc = RiverUtils.getNamedMainValue(winfo, wqkms.getRawValue()); // For 'W am Pegel' s if (colDesc == null) { - colDesc = ((D4EArtifact)master).getDataAsString("wq_single"); + Double value = RiverUtils.getValueFromWQ(wqkms); + colDesc = (value != null) ? + Formatter.getWaterlevelW(context).format(value) : null; } } }