# HG changeset patch # User Bjoern Ricks # Date 1348060584 0 # Node ID 60911c8422b715eed9a87ea676d908382b0fdafa # Parent e6186ab0055353c345da2d33f46e03111139a79b Don't display the GaugePanel if no river is selected flys-client/trunk@5525 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r e6186ab00553 -r 60911c8422b7 flys-client/ChangeLog --- a/flys-client/ChangeLog Wed Sep 19 13:14:46 2012 +0000 +++ b/flys-client/ChangeLog Wed Sep 19 13:16:24 2012 +0000 @@ -1,3 +1,8 @@ +2012-09-19 Björn Ricks + + * src/main/java/de/intevation/flys/client/client/ui/ParameterList.java: + Don't display the GaugePanel if no river is selected. + 2012-09-19 Björn Ricks * src/main/java/de/intevation/flys/client/shared/model/DefaultArtifactDescription.java: diff -r e6186ab00553 -r 60911c8422b7 flys-client/src/main/java/de/intevation/flys/client/client/ui/ParameterList.java --- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/ParameterList.java Wed Sep 19 13:14:46 2012 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/ParameterList.java Wed Sep 19 13:16:24 2012 +0000 @@ -743,7 +743,13 @@ } } if (art instanceof WINFOArtifact) { - renderGaugeInfo(desc.getRiver()); + String river = desc.getRiver(); + if (river != null) { + renderGaugeInfo(desc.getRiver()); + } + else { + gaugePanel.hide(); + } } addOldDatas(