changeset 7713:dfe3f78fd3e5

(issue1622) Paint W Differences on diffW Axis
author Andre Heinecke <aheinecke@intevation.de>
date Thu, 19 Dec 2013 18:36:00 +0100
parents 27578853bf24
children 0ee6aa11649b
files artifacts/src/main/java/org/dive4elements/river/exports/process/AreaProcessor.java
diffstat 1 files changed, 6 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/exports/process/AreaProcessor.java	Thu Dec 19 18:35:03 2013 +0100
+++ b/artifacts/src/main/java/org/dive4elements/river/exports/process/AreaProcessor.java	Thu Dec 19 18:36:00 2013 +0100
@@ -132,16 +132,17 @@
 
     /** Look up the axis identifier for a given facet type. */
     private String axisNameForFacet(String facetName) {
+        if (FacetTypes.W_DIFFERENCES.equals(facetName)) {
+            return "diffW";
+        }
         if (FacetTypes.IS.W(facetName)) {
             return "W";
         }
-        else if (FacetTypes.IS.Q(facetName)) {
+        if (FacetTypes.IS.Q(facetName)) {
             return "Q";
         }
-        else {
-            logger.warn("Could not find axis for facet " + facetName);
-            return "W";
-        }
+        logger.warn("Could not find axis for facet " + facetName);
+        return "W";
     }
 
     @Override

http://dive4elements.wald.intevation.org