diff src/java/de/intevation/mxd/writer/MapScriptWriter.java @ 204:52b918f958d0

Remove incomplete layer from map.
author raimund renkert <raimund.renkert@intevation.de>
date Thu, 21 Jul 2011 16:17:30 +0200
parents 123fd9887a4f
children 07b991b940ab
line wrap: on
line diff
--- a/src/java/de/intevation/mxd/writer/MapScriptWriter.java	Thu Jul 21 16:12:39 2011 +0200
+++ b/src/java/de/intevation/mxd/writer/MapScriptWriter.java	Thu Jul 21 16:17:30 2011 +0200
@@ -194,6 +194,7 @@
             layerObj layer = new layerObj(map);
             NodeList renderer = layerElement.getElementsByTagName("renderer");
 	    if (renderer.getLength() == 0) {
+		map.removeLayer(layer.getIndex());
 	        continue;
 	    }
 
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)