diff src/java/de/intevation/mxd/writer/MapScriptWriter.java @ 305:ebf974199309

Only write group if layer is part of a group
author Andre Heinecke <aheinecke@intevation.de>
date Wed, 05 Sep 2012 17:19:19 +0200
parents 50031b1ae8e6
children f9e53dcc7424
line wrap: on
line diff
--- a/src/java/de/intevation/mxd/writer/MapScriptWriter.java	Wed Sep 05 17:18:18 2012 +0200
+++ b/src/java/de/intevation/mxd/writer/MapScriptWriter.java	Wed Sep 05 17:19:19 2012 +0200
@@ -289,9 +289,9 @@
                 ulgroup = ulgroup.substring(1);
             }
             layer.setName(ulname);
-            layer.setGroup(ulgroup);
             layer.setUnits(units.swigValue());
             if(!group.equals("")) {
+                layer.setGroup(ulgroup);
                 layer.setMetaData("wms_layer_group", group);
             }
             layer.setMetaData("wms_title", ulname);
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)