comparison flys-artifacts/src/main/java/de/intevation/flys/exports/CrossSectionGenerator.java @ 3904:2d2ca7bf70a7

Prevent ArrayIndexOutOfBounds-Exception. flys-artifacts/trunk@5569 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Sat, 22 Sep 2012 09:57:27 +0000
parents 04309ca24614
children 3dc26ec2558d
comparison
equal deleted inserted replaced
3903:0623cdf32b38 3904:2d2ca7bf70a7
336 } 336 }
337 else { 337 else {
338 series.setLabel(series.getLabel() + ", " + labelAdd); 338 series.setLabel(series.getLabel() + ", " + labelAdd);
339 } 339 }
340 } 340 }
341 if (ThemeUtil.parseShowLevel(theme) && lines.points.length >0 341 if (ThemeUtil.parseShowLevel(theme) && lines.points.length > 1
342 && lines.points[1].length > 0) { 342 && lines.points[1].length > 0) {
343 NumberFormat nf = Formatter.getMeterFormat(this.context); 343 NumberFormat nf = Formatter.getMeterFormat(this.context);
344 String labelAdd = "W=" + nf.format(lines.points[1][0]) + "NN+m"; 344 String labelAdd = "W=" + nf.format(lines.points[1][0]) + "NN+m";
345 if (series.getLabel().length() == 0) { 345 if (series.getLabel().length() == 0) {
346 series.setLabel(labelAdd); 346 series.setLabel(labelAdd);

http://dive4elements.wald.intevation.org