changeset 2655:60925be3c84f

Make it compilable again after signature change in backend. flys-artifacts/trunk@4326 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Wed, 02 May 2012 08:50:01 +0000
parents 884ae61def58
children f1dcd5f94ffa
files flys-artifacts/ChangeLog flys-artifacts/src/main/java/de/intevation/flys/artifacts/charts/CrossSectionApp.java
diffstat 2 files changed, 8 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/flys-artifacts/ChangeLog	Fri Apr 27 10:13:16 2012 +0000
+++ b/flys-artifacts/ChangeLog	Wed May 02 08:50:01 2012 +0000
@@ -1,3 +1,8 @@
+2012-05-02	Sascha L. Teichmann	<sascha.teichmann@intevation.de>
+
+	* src/main/java/de/intevation/flys/artifacts/charts/CrossSectionApp.java:
+	  Make it compile again after signature change in backend.
+
 2012-04-27	Felix Wolfsteller	<felix.wolfsteller@intevation.de>
 
 	*  src/main/java/de/intevation/flys/exports/XYChartGenerator.java: Doc.
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/charts/CrossSectionApp.java	Fri Apr 27 10:13:16 2012 +0000
+++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/charts/CrossSectionApp.java	Wed May 02 08:50:01 2012 +0000
@@ -29,6 +29,7 @@
 import java.io.IOException;
 import java.io.PrintWriter;
 
+import java.math.BigDecimal;
 import java.math.MathContext;
 
 import java.util.ArrayList;
@@ -449,8 +450,8 @@
                 out.println("# " + pair.getA().getDescription());
                 for (CrossSectionPoint point: pair.getB().getPoints()) {
                     out.println(
-                        point.getX().round(mc) + " " +
-                        point.getY().round(mc));
+                        new BigDecimal(point.getX()).round(mc) + " " +
+                        new BigDecimal(point.getY()).round(mc));
                 }
             }
 

http://dive4elements.wald.intevation.org