# HG changeset patch # User Sascha L. Teichmann # Date 1305816713 0 # Node ID fadf797bf12378defb37ac65e8b36aca47bb44aa # Parent 523a256451cdda8a63fcaf1dcbc7a157f5bbefef Increment kms array size by one to take the end of range, too. flys-artifacts/trunk@1962 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r 523a256451cd -r fadf797bf123 flys-artifacts/ChangeLog --- a/flys-artifacts/ChangeLog Thu May 19 14:38:15 2011 +0000 +++ b/flys-artifacts/ChangeLog Thu May 19 14:51:53 2011 +0000 @@ -1,3 +1,8 @@ +2011-05-19 Sascha L. Teichmann + + * src/main/java/de/intevation/flys/artifacts/FLYSArtifact.java (getExplodedValues): + Increment kms array size by one to take the end of range, too. + 2011-05-19 Sascha L. Teichmann * src/main/java/de/intevation/flys/artifacts/model/WstValueTableFactory.java: diff -r 523a256451cd -r fadf797bf123 flys-artifacts/src/main/java/de/intevation/flys/artifacts/FLYSArtifact.java --- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/FLYSArtifact.java Thu May 19 14:38:15 2011 +0000 +++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/FLYSArtifact.java Thu May 19 14:51:53 2011 +0000 @@ -916,9 +916,9 @@ double diff = to - from; double tmp = diff / step; - int num = (int) Math.ceil(tmp) ; + int num = (int)Math.abs(Math.ceil(tmp)) + 1; - double[] values = new double[num]; + double [] values = new double[num]; for (int idx = 0; idx < num; idx++) { values[idx] = lower;