changeset 1380:2d617c48ca5f

Issue 400. Iterate over a list of all theme settings to display all available settings. flys-client/trunk@3132 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Raimund Renkert <raimund.renkert@intevation.de>
date Tue, 01 Nov 2011 15:01:37 +0000
parents 546f7f890ffa
children 4459901e4ec0
files flys-client/ChangeLog flys-client/src/main/java/de/intevation/flys/client/client/ui/StyleEditorWindow.java
diffstat 2 files changed, 14 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/flys-client/ChangeLog	Tue Nov 01 14:29:27 2011 +0000
+++ b/flys-client/ChangeLog	Tue Nov 01 15:01:37 2011 +0000
@@ -1,3 +1,11 @@
+2011-11-01  Raimund Renkert <raimund.renkert@intevation.de>
+
+	Issue 400.
+
+	* src/main/java/de/intevation/flys/client/client/ui/StyleEditorWindow.java:
+	  Iterate over a list of all theme settings to display all available
+	  settings.
+
 2011-11-01	Felix Wolfsteller	<felix.wolfsteller@intevation.de>
 
 	Cosmetics, Refactoring.
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/StyleEditorWindow.java	Tue Nov 01 14:29:27 2011 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/StyleEditorWindow.java	Tue Nov 01 15:01:37 2011 +0000
@@ -179,8 +179,13 @@
                          "backgroundcolor",
                          "showbackground"};
 
-        for (int i = 0; i < s.getNumSettings(); i ++) {
+        for (int i = 0; i < sets.length; i ++) {
             StyleSetting set = s.getSetting(sets[i]);
+
+            if (set == null) {
+                continue;
+            }
+
             DynamicForm property = createPropertyUI(
                 set.getDisplayName(),
                 set.getName(),

http://dive4elements.wald.intevation.org