diff 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
line wrap: on
line diff
--- a/gnv-artifacts/src/main/java/de/intevation/gnv/chart/AdvancedHistogramDataset.java	Wed Jun 30 12:26:04 2010 +0000
+++ b/gnv-artifacts/src/main/java/de/intevation/gnv/chart/AdvancedHistogramDataset.java	Wed Jun 30 13:05:42 2010 +0000
@@ -153,8 +153,7 @@
         }
 
         if (bins <= 0) {
-            throw new IllegalArgumentException(
-                    "The 'bins' value must be at least 1.");
+            bins = 1;
         }
 
         // in this case, there is a number of bins given, so we need to

http://dive4elements.wald.intevation.org