[PATCH] issue1574: Also allow area creation for longitudinal_discharge_sections

Wald Commits scm-commit at wald.intevation.org
Tue Dec 10 11:52:14 CET 2013


# HG changeset patch
# User Felix Wolfsteller <felix.wolfsteller at intevation.de>
# Date 1386670926 -3600
# Node ID 4e76bfff5fa647a7f00719fffa918e4a57bf0b40
# Parent  8fe646d9d4ee8e167c3ed626b03880a8d70984bb
issue1574: Also allow area creation for longitudinal_discharge_sections.

diff -r 8fe646d9d4ee -r 4e76bfff5fa6 gwt-client/src/main/java/org/dive4elements/river/client/client/ui/chart/ChartThemePanel.java
--- 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");
     }


More information about the Dive4elements-commits mailing list