[Dive4elements-commits] [PATCH 2 of 2] Fix for flys/issue1130 (decimals in result display)

Wald Commits scm-commit at wald.intevation.org
Tue Mar 26 12:20:27 CET 2013


# HG changeset patch
# User Felix Wolfsteller <felix.wolfsteller at intevation.de>
# Date 1364297208 -3600
# Node ID a137cbab32a81b9bc863c5aefda9e159c9cc3801
# Parent  657392b30bb4ec84ee722067046b66ec6becc58e
Fix for flys/issue1130 (decimals in result display).

diff -r 657392b30bb4 -r a137cbab32a8 flys-artifacts/src/main/java/de/intevation/flys/exports/WaterlevelExporter.java
--- 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]);
                     }
                 }
             }


More information about the Dive4elements-commits mailing list