changeset 5153:658dc517fd7b

workaround for flys/issue1139: filter columns by all sectors.
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Fri, 01 Mar 2013 11:35:06 +0100
parents b26465581abf
children 56091d58a99f
files flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/FixingsOverview.java
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/FixingsOverview.java	Fri Mar 01 10:35:38 2013 +0100
+++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/FixingsOverview.java	Fri Mar 01 11:35:06 2013 +0100
@@ -644,11 +644,11 @@
         public boolean accept(Fixing.Column column) {
             for (SectorRange s: column.getSectors()) {
                 int v = s.getSector();
-                if (v >= min && v <= max) {
-                    return true;
+                if (v < min || v > max) {
+                    return false;
                 }
             }
-            return false;
+            return true;
         }
     } // class SectorRangeFilter
 

http://dive4elements.wald.intevation.org