changeset 2930:e8eca6eeeec0

Show area menu also for newer manual wsp line facet. flys-client/trunk@4833 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Thu, 28 Jun 2012 18:09:44 +0000
parents 0ef4753e5515
children d6983b78de45
files flys-client/ChangeLog flys-client/src/main/java/de/intevation/flys/client/client/ui/chart/CrossSectionChartThemePanel.java
diffstat 2 files changed, 9 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/flys-client/ChangeLog	Thu Jun 28 15:44:10 2012 +0000
+++ b/flys-client/ChangeLog	Thu Jun 28 18:09:44 2012 +0000
@@ -1,3 +1,8 @@
+2012-06-28	Felix Wolfsteller	<felix.wolfsteller@intevation.de>
+
+	* src/main/java/de/intevation/flys/client/client/ui/chart/CrossSectionChartThemePanel.java:
+	  Show area menu also for newer manual wsp line facet.
+
 2012-06-28	Felix Wolfsteller	<felix.wolfsteller@intevation.de>
 
 	* src/main/java/de/intevation/flys/client/client/ui/chart/ManualWSPEditor.java:
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/chart/CrossSectionChartThemePanel.java	Thu Jun 28 15:44:10 2012 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/chart/CrossSectionChartThemePanel.java	Thu Jun 28 18:09:44 2012 +0000
@@ -764,9 +764,9 @@
             return false;
         }
         return (a.getFacet().equals("cross_section")
-                || a.getFacet().equals("cross_section_water_line"))
+                || a.getFacet().endsWith("line"))
             && (b.getFacet().equals("cross_section")
-                || b.getFacet().equals("cross_section_water_line"));
+                || b.getFacet().endsWith("line"));
     }
 
 
@@ -776,7 +776,8 @@
      */
     protected boolean canArea(Theme a) {
         return a.getFacet().equals("cross_section")
-            || a.getFacet().equals("cross_section_water_line");
+            || a.getFacet().equals("cross_section_water_line")
+            || a.getFacet().endsWith("line");
     }
 
 

http://dive4elements.wald.intevation.org