Mercurial > dive4elements > river
changeset 4665:f53e2e877aa4
Read and use the hidden hint correctly.
author | Raimund Renkert <rrenkert@intevation.de> |
---|---|
date | Wed, 12 Dec 2012 10:37:45 +0100 (2012-12-12) |
parents | c2b431e3e88a |
children | 28eb979ae31b |
files | flys-client/src/main/java/de/intevation/flys/client/server/StyleHelper.java |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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); }