changeset 200:ecf2f68230a2

Remove all whitespaces from grouplayer name.
author raimund renkert <raimund.renkert@intevation.de>
date Wed, 20 Jul 2011 18:27:32 +0200 (2011-07-20)
parents c56547b228f9
children 877be7484245
files ChangeLog src/java/de/intevation/mxd/writer/MapScriptWriter.java
diffstat 2 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Wed Jul 20 18:22:59 2011 +0200
+++ b/ChangeLog	Wed Jul 20 18:27:32 2011 +0200
@@ -1,3 +1,8 @@
+2011-07-20  Raimund Renkert  <raimund.renkert@intevation.de>
+
+	* src/java/de/intevation/mxd/writer/MapScriptWriter.java:
+	  Remove all whitespaces from grouplayer name.
+
 2011-07-20  Raimund Renkert  <raimund.renkert@intevation.de>
 
 	* src/java/de/intevation/mxd/writer/MapScriptWriter.java:
--- a/src/java/de/intevation/mxd/writer/MapScriptWriter.java	Wed Jul 20 18:22:59 2011 +0200
+++ b/src/java/de/intevation/mxd/writer/MapScriptWriter.java	Wed Jul 20 18:27:32 2011 +0200
@@ -205,7 +205,9 @@
             layer.setMetaData("wms_title", validateString(lname));
             if(layerElement.hasAttribute("group")) {
 		String group = layerElement.getAttribute("group");
-                layer.setGroup(validateString(group));
+		group = validateString(group);
+		group = group.replaceAll (" ", "");
+                layer.setGroup(group);
             }
 
             //The layer status.
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)