# HG changeset patch # User Felix Wolfsteller # Date 1324382956 0 # Node ID dfe884cc24a464f6b9f1f3cd6fd18e4f0f3e1e82 # Parent 149f70bcbb965b1c4e328711dc4a961b93bca795 Allow other.wkms facets to be created areas with. flys-client/trunk@3495 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r 149f70bcbb96 -r dfe884cc24a4 flys-client/ChangeLog --- a/flys-client/ChangeLog Tue Dec 20 11:50:20 2011 +0000 +++ b/flys-client/ChangeLog Tue Dec 20 12:09:16 2011 +0000 @@ -1,3 +1,8 @@ +2011-12-20 Felix Wolfsteller + + * src/main/java/de/intevation/flys/client/client/ui/chart/ChartThemePanel.java: + Add other.wkms to list of area-compatible facets. + 2011-12-20 Ingo Weinzierl * src/main/java/de/intevation/flys/client/client/ui/WQInputPanel.java: diff -r 149f70bcbb96 -r dfe884cc24a4 flys-client/src/main/java/de/intevation/flys/client/client/ui/chart/ChartThemePanel.java --- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/chart/ChartThemePanel.java Tue Dec 20 11:50:20 2011 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/chart/ChartThemePanel.java Tue Dec 20 12:09:16 2011 +0000 @@ -124,6 +124,7 @@ } + /** Set theme active/inactive. */ @Override public void activateTheme(Theme theme, boolean active) { theme.setActive(active ? 1 : 0); @@ -259,8 +260,10 @@ if (a.equals(b)) { return false; } - if (a.getFacet().equals("longitudinal_section.w")) { - return b.getFacet().equals("longitudinal_section.w"); + if (a.getFacet().equals("longitudinal_section.w") || + a.getFacet().equals("other.wkms")) { + return b.getFacet().equals("longitudinal_section.w") + || b.getFacet().equals("other.wkms"); } else if (a.getFacet().equals("longitudinal_section.q")) { return b.getFacet().equals("longitudinal_section.q"); @@ -275,7 +278,8 @@ */ protected boolean canArea(Theme a) { return a.getFacet().equals("longitudinal_section.q") - || a.getFacet().equals("longitudinal_section.w"); + || a.getFacet().equals("longitudinal_section.w") + || a.getFacet().equals("other.wkms"); }