diff gnv-artifacts/src/main/java/de/intevation/gnv/math/XYColumn.java @ 451:bc5901bb4525

Use JFreeCharts ValueAxis.valueToJava2D() to transform data values to Java2D space in polygon plot. gnv-artifacts/trunk@499 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Mon, 04 Jan 2010 12:42:16 +0000
parents 3cb2bea50456
children b1f5f2a8840f
line wrap: on
line diff
--- a/gnv-artifacts/src/main/java/de/intevation/gnv/math/XYColumn.java	Mon Jan 04 02:49:42 2010 +0000
+++ b/gnv-artifacts/src/main/java/de/intevation/gnv/math/XYColumn.java	Mon Jan 04 12:42:16 2010 +0000
@@ -64,8 +64,8 @@
     }
 
     public boolean prepare(XYDepth xyDepth) {
-        int N = values.size();
         if (curve == null) {
+            int N = values.size();
             if (N == 0) {
                 log.error("no points for interpolation");
                 return false;

http://dive4elements.wald.intevation.org