changeset 2331:2c96222dd773

Picked rev4034 from trunk. flys-artifacts/tags/2.6@4035 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Fri, 10 Feb 2012 14:07:03 +0000
parents 594885703687
children 0ddebd4448a7
files flys-artifacts/ChangeLog flys-artifacts/src/main/java/de/intevation/flys/exports/HistoricalDischargeCurveExporter.java
diffstat 2 files changed, 8 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/flys-artifacts/ChangeLog	Fri Feb 10 11:18:27 2012 +0000
+++ b/flys-artifacts/ChangeLog	Fri Feb 10 14:07:03 2012 +0000
@@ -1,3 +1,9 @@
+2012-02-10  Ingo Weinzierl <ingo@intevation.de>
+
+	* src/main/java/de/intevation/flys/exports/HistoricalDischargeCurveExporter.java:
+	  Fixed wrong double array dimension for PDF exports and write correct
+	  differences into PDF.
+
 2012-02-10  Ingo Weinzierl <ingo@intevation.de>
 
 	* src/main/java/de/intevation/flys/exports/InfoGeneratorHelper.java: Write
--- a/flys-artifacts/src/main/java/de/intevation/flys/exports/HistoricalDischargeCurveExporter.java	Fri Feb 10 11:18:27 2012 +0000
+++ b/flys-artifacts/src/main/java/de/intevation/flys/exports/HistoricalDischargeCurveExporter.java	Fri Feb 10 14:07:03 2012 +0000
@@ -213,7 +213,7 @@
         NumberFormat wf = Formatter.getHistoricalDischargeW(context);
         NumberFormat qf = Formatter.getHistoricalDischargeQ(context);
 
-        double[] wq = new double[2];
+        double[] wq = new double[3];
 
         String gaugeName = getReferenceGaugename();
 
@@ -228,7 +228,7 @@
                 df.format(start) + " - " + df.format(end),
                 wf.format(wq[0]),
                 qf.format(wq[1]),
-                "TODO: Difference to reference curve",
+                qf.format(wq[2]),
                 gaugeName
             });
         }

http://dive4elements.wald.intevation.org