Mercurial > dive4elements > river
diff flys-client/src/main/java/de/intevation/flys/client/shared/model/ThemeList.java @ 1437:1d82a2c695a6
Fix ThemeList.toMaps
flys-client/trunk@3402 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Tue, 13 Dec 2011 13:23:18 +0000 |
parents | f6fbfdc813f0 |
children | 71ba43bd0e3f |
line wrap: on
line diff
--- a/flys-client/src/main/java/de/intevation/flys/client/shared/model/ThemeList.java Tue Dec 13 11:11:48 2011 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/shared/model/ThemeList.java Tue Dec 13 13:23:18 2011 +0000 @@ -109,7 +109,7 @@ public LinkedHashMap<String, String> toMapIndexDescription(String facetName) { int count = getThemeCount(); LinkedHashMap<String, String> valueMap = new LinkedHashMap<String, String>(); - for (int i = 0; i < count; i++) { + for (int i = 0; i <= count; i++) { Theme theme = getThemeAt(i + 1); if (theme == null || theme.getVisible() == 0) { @@ -130,7 +130,7 @@ ) { int count = getThemeCount(); LinkedHashMap<String, String> valueMap = new LinkedHashMap<String, String>(); - for (int i = 0; i < count; i++) { + for (int i = 0; i <= count; i++) { Theme theme = getThemeAt(i + 1); if (theme == null || theme.getVisible() == 0) {