diff src/java/de/intevation/mxd/writer/MapScriptWriter.java @ 335:4cf94b919725

* src/java/de/intevation/mxd/writer/MapScriptWriter.java: Fix Label handling according to mapscript 6.2
author Andre Heinecke <aheinecke@intevation.de>
date Fri, 26 Oct 2012 12:46:41 +0200
parents da60e3ac2b5d
children b3048df06b66
line wrap: on
line diff
--- a/src/java/de/intevation/mxd/writer/MapScriptWriter.java	Fri Oct 26 12:45:42 2012 +0200
+++ b/src/java/de/intevation/mxd/writer/MapScriptWriter.java	Fri Oct 26 12:46:41 2012 +0200
@@ -720,7 +720,8 @@
         String layerType) {
 
         //Get the label object. Each class has a predefined labelobject.
-        labelObj label = co.getLabel(0);
+        labelObj label = new labelObj();
+        co.addLabel(label);
 
         //Get the label text symbol attributes from DOM.
         Element symbol = (Element)labelElement.getFirstChild();
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)