changeset 7820:6b880df95a3a

Fixed WSPLGEN classes. Allow 0 for 'to' in differences.
author Raimund Renkert <rrenkert@intevation.de>
date Wed, 19 Mar 2014 15:08:44 +0100
parents 20053d86fa5e
children 3f58de350fb4 3f6b9fae1637
files artifacts/src/main/java/org/dive4elements/river/themes/ThemeDocument.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/themes/ThemeDocument.java	Tue Mar 18 18:07:27 2014 +0100
+++ b/artifacts/src/main/java/org/dive4elements/river/themes/ThemeDocument.java	Wed Mar 19 15:08:44 2014 +0100
@@ -659,7 +659,7 @@
             ? parseColor(strEndColor)
             : new Color(2, 27, 42);
 
-        to = to != 0 ? to : 9999;
+        to = to >= 0 ? to : 9999;
         step = step != 0 ? step : to;
 
         int numClasses = (int)((to - from) / step);

http://dive4elements.wald.intevation.org