comparison 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
comparison
equal deleted inserted replaced
1436:29fc2d1dfe9b 1437:1d82a2c695a6
107 * @return mapping of index to description 107 * @return mapping of index to description
108 */ 108 */
109 public LinkedHashMap<String, String> toMapIndexDescription(String facetName) { 109 public LinkedHashMap<String, String> toMapIndexDescription(String facetName) {
110 int count = getThemeCount(); 110 int count = getThemeCount();
111 LinkedHashMap<String, String> valueMap = new LinkedHashMap<String, String>(); 111 LinkedHashMap<String, String> valueMap = new LinkedHashMap<String, String>();
112 for (int i = 0; i < count; i++) { 112 for (int i = 0; i <= count; i++) {
113 Theme theme = getThemeAt(i + 1); 113 Theme theme = getThemeAt(i + 1);
114 114
115 if (theme == null || theme.getVisible() == 0) { 115 if (theme == null || theme.getVisible() == 0) {
116 continue; 116 continue;
117 } 117 }
128 public LinkedHashMap<String, String> 128 public LinkedHashMap<String, String>
129 toMapArtifactUUIDDescription(String facetName 129 toMapArtifactUUIDDescription(String facetName
130 ) { 130 ) {
131 int count = getThemeCount(); 131 int count = getThemeCount();
132 LinkedHashMap<String, String> valueMap = new LinkedHashMap<String, String>(); 132 LinkedHashMap<String, String> valueMap = new LinkedHashMap<String, String>();
133 for (int i = 0; i < count; i++) { 133 for (int i = 0; i <= count; i++) {
134 Theme theme = getThemeAt(i + 1); 134 Theme theme = getThemeAt(i + 1);
135 135
136 if (theme == null || theme.getVisible() == 0) { 136 if (theme == null || theme.getVisible() == 0) {
137 continue; 137 continue;
138 } 138 }

http://dive4elements.wald.intevation.org