Mercurial > dive4elements > river
diff flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/FixingsOverview.java @ 5379:61bf64b102bc mapgenfix
Merge with default branch
author | Christian Lins <christian.lins@intevation.de> |
---|---|
date | Fri, 22 Mar 2013 11:25:54 +0100 |
parents | 61f4d4164a30 |
children | 0cab1c884e72 |
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/FixingsOverview.java Wed Mar 06 14:14:15 2013 +0100 +++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/FixingsOverview.java Fri Mar 22 11:25:54 2013 +0100 @@ -20,6 +20,8 @@ import org.w3c.dom.Document; import org.w3c.dom.Element; + +/** Generate Fixings Table chart. */ public class FixingsOverview implements Serializable { @@ -644,11 +646,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 @@ -728,6 +730,7 @@ return gauges; } + /** Populate document with fixings, filtered by range and filter. */ public void generateOverview( Document document, Range range,