[Dive4elements-commits] [PATCH 2 of 4] Read and use the hidden hint correctly

Wald Commits scm-commit at wald.intevation.org
Wed Dec 12 10:43:16 CET 2012


# HG changeset patch
# User Raimund Renkert <rrenkert at intevation.de>
# Date 1355305065 -3600
# Node ID f53e2e877aa48369bf65e373bc8029d02fb293be
# Parent  c2b431e3e88ac119d347a2b2c0a0174149442775
Read and use the hidden hint correctly.

diff -r c2b431e3e88a -r f53e2e877aa4 flys-client/src/main/java/de/intevation/flys/client/server/StyleHelper.java
--- a/flys-client/src/main/java/de/intevation/flys/client/server/StyleHelper.java	Wed Dec 12 10:35:34 2012 +0100
+++ b/flys-client/src/main/java/de/intevation/flys/client/server/StyleHelper.java	Wed Dec 12 10:37:45 2012 +0100
@@ -30,7 +30,7 @@
 
         for(int i = 0; i < list.getLength(); i++) {
             Element     e = (Element) list.item(i);
-            String hidden = e.getAttribute("hidden");
+            String hints = e.getAttribute("hints");
 
             StyleSetting set = new StyleSetting (
                 e.getAttribute("name"),
@@ -38,7 +38,7 @@
                 e.getAttribute("display"),
                 e.getAttribute("hints"),
                 e.getAttribute("type"),
-                (hidden != null ? Boolean.valueOf(hidden) : false)
+                (hints != null && hints.contains("hidden") ? true : false)
             );
             style.appendStyleSetting(set);
         }


More information about the Dive4elements-commits mailing list