[Dive4elements-commits] [PATCH] workaround for flys/issue1139: filter columns by all sectors
Wald Commits
scm-commit at wald.intevation.org
Fri Mar 1 11:36:46 CET 2013
# HG changeset patch
# User Felix Wolfsteller <felix.wolfsteller at intevation.de>
# Date 1362134106 -3600
# Node ID 658dc517fd7b16777c07ab4ee0fdd5ea9d71baee
# Parent b26465581abf9bf83ab5357de474680b4c027ba1
workaround for flys/issue1139: filter columns by all sectors.
diff -r b26465581abf -r 658dc517fd7b flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/FixingsOverview.java
--- 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
More information about the Dive4elements-commits
mailing list