changeset 3632:347096b8cdf6

Fix invalid cast. flys-artifacts/trunk@5335 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Fri, 31 Aug 2012 14:42:52 +0000
parents 2b8e1864213e
children ebfce31c7eec
files flys-artifacts/ChangeLog flys-artifacts/src/main/java/de/intevation/flys/exports/TimeseriesChartGenerator.java
diffstat 2 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/flys-artifacts/ChangeLog	Fri Aug 31 14:25:32 2012 +0000
+++ b/flys-artifacts/ChangeLog	Fri Aug 31 14:42:52 2012 +0000
@@ -1,3 +1,8 @@
+2012-08-31	Felix Wolfsteller	<felix.wolfsteller@intevation.de>
+
+	* src/main/java/de/intevation/flys/exports/TimeseriesChartGenerator.java:
+	  Fix cast.
+
 2012-08-31  Raimund Renkert <raimund.renkert@intevation.de>
 
 	* src/main/resources/messages.properties,
--- a/flys-artifacts/src/main/java/de/intevation/flys/exports/TimeseriesChartGenerator.java	Fri Aug 31 14:25:32 2012 +0000
+++ b/flys-artifacts/src/main/java/de/intevation/flys/exports/TimeseriesChartGenerator.java	Fri Aug 31 14:42:52 2012 +0000
@@ -312,7 +312,7 @@
             xPos = getRightX();
         }
         else if (placeh.equals("center")) {
-            xPos = ((Double)getXBounds(0).getUpper() + (Double)getXBounds(0).getLower())/2d;
+            xPos = ((Long)getXBounds(0).getUpper() + (Long)getXBounds(0).getLower())/2d;
         }
         else {
             logger.debug("Unknown place-h value: " + placeh);

http://dive4elements.wald.intevation.org