changeset 1454:9152cfb3a54c

Bugfix: split up the Ws and Qs in the WQInputPanel properly. flys-client/trunk@3484 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Tue, 20 Dec 2011 09:03:14 +0000
parents e8aec81af22b
children 75a40270efa8
files flys-client/src/main/java/de/intevation/flys/client/client/ui/WQInputPanel.java
diffstat 1 files changed, 4 insertions(+), 18 deletions(-) [+]
line wrap: on
line diff
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/WQInputPanel.java	Tue Dec 20 06:55:48 2011 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/WQInputPanel.java	Tue Dec 20 09:03:14 2011 +0000
@@ -519,15 +519,8 @@
 
 
     protected VLayout createWString(DataItem single) {
-        String  label = single.getLabel();
-        String[] cols = null;
-
-        if (label.indexOf(",") > 0) {
-            cols = label.split(",");
-        }
-        else {
-            cols = label.split(" ");
-        }
+        String  label = single.getLabel().trim();
+        String[] cols = label.split(" ");
 
         VLayout v = new VLayout();
 
@@ -560,15 +553,8 @@
 
 
     protected VLayout createQString(DataItem single) {
-        String  label = single.getLabel();
-        String[] cols = null;
-
-        if (label.indexOf(",") > 0) {
-            cols = label.split(",");
-        }
-        else {
-            cols = label.split(" ");
-        }
+        String  label = single.getLabel().trim();
+        String[] cols = label.split(" ");
 
         VLayout v = new VLayout();
 

http://dive4elements.wald.intevation.org