diff flys-client/src/main/java/de/intevation/flys/client/client/ui/StyleEditorWindow.java @ 2543:d632a6526ad9

Set the facet and the index to valid values. flys-client/trunk@4500 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Raimund Renkert <raimund.renkert@intevation.de>
date Thu, 24 May 2012 10:12:02 +0000
parents e75b15818435
children cd068ff7966d
line wrap: on
line diff
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/StyleEditorWindow.java	Thu May 24 05:25:38 2012 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/StyleEditorWindow.java	Thu May 24 10:12:02 2012 +0000
@@ -182,8 +182,8 @@
                     while (i.hasNext()) {
                         String s = i.next().toString();
                         Style tmp = styleGroups.get(s);
-                        tmp.setFacet(facet.getTheme().getFacet());
-                        tmp.setIndex(0);
+                        tmp.setFacet(current.getFacet());
+                        tmp.setIndex(current.getIndex());
                         valueMap.put(s, s);
                     }
                     styleChooser.setValueMap(valueMap);

http://dive4elements.wald.intevation.org