[PATCH 1 of 3] Minor refactoring

Wald Commits scm-commit at wald.intevation.org
Mon Aug 19 12:33:15 CEST 2013


# HG changeset patch
# User Felix Wolfsteller <felix.wolfsteller at intevation.de>
# Date 1376907751 -7200
# Node ID fb9babfa2aa3e21f1ba65a571f5a20bd1a91d42b
# Parent  affcedb306da8fac1861de136dd9b5dd026e5472
Minor refactoring.

diff -r affcedb306da -r fb9babfa2aa3 artifacts/src/main/java/org/dive4elements/river/exports/process/BedDiffYearProcessor.java
--- 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);
     }
 }


More information about the Dive4elements-commits mailing list