[Dive4elements-commits] [PATCH 1 of 5] Fixed out processor to draw sector averages in fix analysis ls

Wald Commits scm-commit at wald.intevation.org
Mon Dec 17 15:54:53 CET 2012


# HG changeset patch
# User Raimund Renkert <rrenkert at intevation.de>
# Date 1355754436 -3600
# Node ID f59fbc9bd04a9a87dd0257afd9d7e7347fbb78a1
# Parent  4970c1def388ad1c92231eeffdda1c78cfa9cf39
Fixed out processor to draw sector averages in fix analysis ls.

diff -r 4970c1def388 -r f59fbc9bd04a flys-artifacts/src/main/java/de/intevation/flys/exports/process/KMIndexProcessor.java
--- a/flys-artifacts/src/main/java/de/intevation/flys/exports/process/KMIndexProcessor.java	Fri Dec 14 16:03:38 2012 +0100
+++ b/flys-artifacts/src/main/java/de/intevation/flys/exports/process/KMIndexProcessor.java	Mon Dec 17 15:27:16 2012 +0100
@@ -22,7 +22,7 @@
     public void doOut(XYChartGenerator generator, ArtifactAndFacet aandf,
             Document theme, boolean visible, int index) {
         String facettype = aandf.getFacetName();
-         if (facettype.contains(FacetTypes.FIX_SECTOR_AVERAGE_LS)) {
+        if (facettype.contains(FacetTypes.FIX_SECTOR_AVERAGE_LS)) {
             doSectorAverageOut(generator, aandf, theme, visible, index);
         }
         else if (facettype.equals(FacetTypes.FIX_REFERENCE_EVENTS_LS)) {
@@ -40,7 +40,7 @@
             return false;
         }
 
-        if (facettype.equals(FacetTypes.FIX_SECTOR_AVERAGE_LS)
+        if (facettype.contains(FacetTypes.FIX_SECTOR_AVERAGE_LS)
                 || facettype.equals(FacetTypes.FIX_REFERENCE_EVENTS_LS)
                 || facettype.equals(FacetTypes.FIX_ANALYSIS_EVENTS_LS))
         {


More information about the Dive4elements-commits mailing list