diff src/java/de/intevation/mxd/writer/MapScriptWriter.java @ 200:ecf2f68230a2

Remove all whitespaces from grouplayer name.
author raimund renkert <raimund.renkert@intevation.de>
date Wed, 20 Jul 2011 18:27:32 +0200
parents c56547b228f9
children 123fd9887a4f
line wrap: on
line diff
--- 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)