Mercurial > dive4elements > river
changeset 5425:a137cbab32a8
Fix for flys/issue1130 (decimals in result display).
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Tue, 26 Mar 2013 12:26:48 +0100 |
parents | 657392b30bb4 |
children | 6875a9f02097 |
files | flys-artifacts/src/main/java/de/intevation/flys/exports/WaterlevelExporter.java |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/exports/WaterlevelExporter.java Tue Mar 26 11:42:47 2013 +0100 +++ b/flys-artifacts/src/main/java/de/intevation/flys/exports/WaterlevelExporter.java Tue Mar 26 12:26:48 2013 +0100 @@ -567,7 +567,9 @@ if (segments != null) { for (Segment segment: segments) { if (segment.inside(result[2])) { - colDesc = "" + segment.getValues()[0]; + NumberFormat nf = + Formatter.getFormatter(context.getMeta() , 0, 0); + colDesc = nf.format(segment.getValues()[0]); } } }