Mercurial > dive4elements > gnv-client
comparison gnv-artifacts/src/main/java/de/intevation/gnv/chart/AdvancedHistogramDataset.java @ 1114:7e085bfb107b
Bugfix: Histogram width results in an IllegalArgumentException (issue320).
gnv-artifacts/trunk@1253 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Wed, 30 Jun 2010 13:05:42 +0000 |
parents | bb2679624c6a |
children | f953c9a559d8 |
comparison
equal
deleted
inserted
replaced
1113:e7efbded1367 | 1114:7e085bfb107b |
---|---|
151 logger.info("The upper bound is moved right from " | 151 logger.info("The upper bound is moved right from " |
152 + tmp + " to " + maximum); | 152 + tmp + " to " + maximum); |
153 } | 153 } |
154 | 154 |
155 if (bins <= 0) { | 155 if (bins <= 0) { |
156 throw new IllegalArgumentException( | 156 bins = 1; |
157 "The 'bins' value must be at least 1."); | |
158 } | 157 } |
159 | 158 |
160 // in this case, there is a number of bins given, so we need to | 159 // in this case, there is a number of bins given, so we need to |
161 // calculate the width of a single bin | 160 // calculate the width of a single bin |
162 if (binWidth <= 0) | 161 if (binWidth <= 0) |