changeset 6861:fb9babfa2aa3

Minor refactoring.
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Mon, 19 Aug 2013 12:22:31 +0200
parents affcedb306da
children 590d420ed382
files artifacts/src/main/java/org/dive4elements/river/exports/process/BedDiffYearProcessor.java
diffstat 1 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/exports/process/BedDiffYearProcessor.java	Mon Aug 19 11:56:17 2013 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/exports/process/BedDiffYearProcessor.java	Mon Aug 19 12:22:31 2013 +0200
@@ -72,13 +72,16 @@
          logger.debug("doBedDifferenceHeightsOut()");
 
         XYSeries series = new StyledXYSeries(bundle.getFacetDescription(), attr);
+        double[][] points;
         if (idx == 0) {
-            StyledSeriesBuilder.addPoints(series, data.getHeights1Data(), false, GAP_TOLERANCE);
+            points = data.getHeights1Data();
         }
         else {
-            StyledSeriesBuilder.addPoints(series, data.getHeights2Data(), false, GAP_TOLERANCE);
+            points = data.getHeights2Data();
         }
 
+        StyledSeriesBuilder.addPoints(series, points, false, GAP_TOLERANCE);
+
         generator.addAxisSeries(series, axidx, visible);
     }
 }

http://dive4elements.wald.intevation.org