comparison flys-client/src/main/java/de/intevation/flys/client/client/ui/GaugePanel.java @ 3834:52109c4bc5de

Prevent AIOOB exception. flys-client/trunk@5540 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Thu, 20 Sep 2012 09:58:10 +0000
parents 611cb0f1761e
children 6b2ae2ec5b01
comparison
equal deleted inserted replaced
3833:611cb0f1761e 3834:52109c4bc5de
162 for (GaugeInfo gauge : gauges) { 162 for (GaugeInfo gauge : gauges) {
163 addGauge(gauge, emptygauges); 163 addGauge(gauge, emptygauges);
164 } 164 }
165 } 165 }
166 else { 166 else {
167 for (int i = gauges.size(); i >= 0; i--) { 167 for (int i = gauges.size()-1; i >= 0; i--) {
168 GaugeInfo gauge = gauges.get(i); 168 GaugeInfo gauge = gauges.get(i);
169 addGauge(gauge, emptygauges); 169 addGauge(gauge, emptygauges);
170 } 170 }
171 } 171 }
172 172

http://dive4elements.wald.intevation.org