# HG changeset patch # User Ingo Weinzierl # Date 1324371794 0 # Node ID 9152cfb3a54cf9183ea0d1cfa0f33e194f8cd80b # Parent e8aec81af22b828730aef758e8935a28c36ec25a Bugfix: split up the Ws and Qs in the WQInputPanel properly. flys-client/trunk@3484 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r e8aec81af22b -r 9152cfb3a54c flys-client/src/main/java/de/intevation/flys/client/client/ui/WQInputPanel.java --- 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();