changeset 7681:4e76bfff5fa6

issue1574: Also allow area creation for longitudinal_discharge_sections.
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Tue, 10 Dec 2013 11:22:06 +0100
parents 8fe646d9d4ee
children 2f7a01fdb093
files gwt-client/src/main/java/org/dive4elements/river/client/client/ui/chart/ChartThemePanel.java
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/gwt-client/src/main/java/org/dive4elements/river/client/client/ui/chart/ChartThemePanel.java	Tue Dec 10 09:25:10 2013 +0100
+++ b/gwt-client/src/main/java/org/dive4elements/river/client/client/ui/chart/ChartThemePanel.java	Tue Dec 10 11:22:06 2013 +0100
@@ -290,15 +290,19 @@
         if (a.getFacet().equals("longitudinal_section.w") ||
             a.getFacet().equals("other.wqkms.w") ||
             a.getFacet().equals("other.wqkms") ||
+            a.getFacet().equals("discharge_longitudinal_section.w") ||
             a.getFacet().equals("other.wkms")) {
             return b.getFacet().equals("longitudinal_section.w")
                 || b.getFacet().equals("other.wqkms")
                 || b.getFacet().equals("other.wqkms.w")
+                || b.getFacet().equals("discharge_longitudinal_section.w")
                 || b.getFacet().equals("other.wkms");
         }
         else if (a.getFacet().equals("longitudinal_section.q") ||
+                 a.getFacet().equals("discharge_longitudinal_section.q") ||
                  a.getFacet().equals("other.wqkms.q")) {
             return b.getFacet().equals("longitudinal_section.q")
+                    || b.getFacet().equals("discharge_longitudinal_section.q")
                     || b.getFacet().equals("other.wqkms.q");
         }
         return false;
@@ -312,6 +316,8 @@
     protected boolean canArea(Theme a) {
         return a.getFacet().equals("longitudinal_section.q")
             || a.getFacet().equals("longitudinal_section.w")
+            || a.getFacet().equals("discharge_longitudinal_section.w")
+            || a.getFacet().equals("discharge_longitudinal_section.q")
             || a.getFacet().startsWith("other.wqkms")
             || a.getFacet().equals("other.wkms");
     }

http://dive4elements.wald.intevation.org