Mercurial > dive4elements > river
changeset 4990:eee722bc85da
FLYS: For Gauge Main Value view, avoid corner cases of gauge range.
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Thu, 14 Feb 2013 11:05:23 +0100 |
parents | e2053fbcd165 |
children | 63617e142dfe |
files | flys-client/src/main/java/de/intevation/flys/client/client/FLYS.java |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/flys-client/src/main/java/de/intevation/flys/client/client/FLYS.java Thu Feb 14 10:50:08 2013 +0100 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/FLYS.java Thu Feb 14 11:05:23 2013 +0100 @@ -441,8 +441,11 @@ /** Opens a window with Main Values from gauge. */ public void newGaugeMainValueTable(GaugeInfo gauge) { Window mainValueView = new Window(); + + // Take middle to avoid issues at borders. + double km = (gauge.getKmEnd() + gauge.getKmStart())/2d; mainValueView.addItem(new WQAutoTabSet(gauge.getRiverName(), - new double[] {gauge.getKmStart(), gauge.getKmEnd()})); + new double[] {km, km})); mainValueView.setWidth(1010); mainValueView.setHeight(700);