changeset 2077:29459ddb6f30

Repaired broken legend items. flys-artifacts/trunk@3591 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Thu, 05 Jan 2012 08:34:47 +0000
parents 41037d51c8b6
children cbeeaaad1056
files flys-artifacts/ChangeLog flys-artifacts/src/main/java/de/intevation/flys/exports/XYChartGenerator.java
diffstat 2 files changed, 12 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/flys-artifacts/ChangeLog	Wed Jan 04 16:13:10 2012 +0000
+++ b/flys-artifacts/ChangeLog	Thu Jan 05 08:34:47 2012 +0000
@@ -1,3 +1,9 @@
+2012-01-05  Ingo Weinzierl <ingo@intevation.de>
+
+	* src/main/java/de/intevation/flys/exports/XYChartGenerator.java: Repaired
+	  broken items in legend. The new renderer requires the current plot. This
+	  is set now.
+
 2012-01-04  Ingo Weinzierl <ingo@intevation.de>
 
 	* doc/conf/themes.xml: Added a new field 'pointsize' to the virtual theme
--- a/flys-artifacts/src/main/java/de/intevation/flys/exports/XYChartGenerator.java	Wed Jan 04 16:13:10 2012 +0000
+++ b/flys-artifacts/src/main/java/de/intevation/flys/exports/XYChartGenerator.java	Thu Jan 05 08:34:47 2012 +0000
@@ -1231,7 +1231,12 @@
     protected XYLineAndShapeRenderer getRenderer(XYPlot plot, int idx) {
         logger.debug("getRenderer: " + idx);
 
-        return new EnhancedLineAndShapeRenderer(true, false);
+        EnhancedLineAndShapeRenderer r =
+            new EnhancedLineAndShapeRenderer(true, false);
+
+        r.setPlot(plot);
+
+        return r;
     }
 
 

http://dive4elements.wald.intevation.org