# HG changeset patch # User Felix Wolfsteller # Date 1323782598 0 # Node ID 1d82a2c695a62e3110bf920509699a6ed0fe2bb2 # Parent 29fc2d1dfe9b426288fcba664f43cb84dfb6f8a3 Fix ThemeList.toMaps flys-client/trunk@3402 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r 29fc2d1dfe9b -r 1d82a2c695a6 flys-client/ChangeLog --- a/flys-client/ChangeLog Tue Dec 13 11:11:48 2011 +0000 +++ b/flys-client/ChangeLog Tue Dec 13 13:23:18 2011 +0000 @@ -1,3 +1,23 @@ +2011-12-13 Felix Wolfsteller + + * src/main/java/de/intevation/flys/client/shared/model/ThemeList.java: + Fix. Respect fact that ThemeLists indices are not 0-based. + +2011-12-13 Felix Wolfsteller + + For CrossSections, enable kilometer- and master-selection from + client. + + * src/main/java/de/intevation/flys/client/client/FLYSConstants_de.properties, + src/main/java/de/intevation/flys/client/client/FLYSConstants_en.properties, + src/main/java/de/intevation/flys/client/client/FLYSConstants.properties, + src/main/java/de/intevation/flys/client/client/FLYSConstants.java: Added + translation. + + * src/main/java/de/intevation/flys/client/client/ui/chart/CrossSectionChartThemePanel.java: + Added input element to select a (cross section) master and + make km spinners work. + 2011-12-13 Felix Wolfsteller Provide access to Artifacts Data via Themes and CollectionItems. diff -r 29fc2d1dfe9b -r 1d82a2c695a6 flys-client/src/main/java/de/intevation/flys/client/shared/model/ThemeList.java --- 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 toMapIndexDescription(String facetName) { int count = getThemeCount(); LinkedHashMap valueMap = new LinkedHashMap(); - 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 valueMap = new LinkedHashMap(); - 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) {