changeset 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 2e445968851f
children a46adb3697fa
files ChangeLog src/java/de/intevation/mxd/writer/MapScriptWriter.java
diffstat 2 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Fri Oct 26 12:45:42 2012 +0200
+++ b/ChangeLog	Fri Oct 26 12:46:41 2012 +0200
@@ -3,6 +3,8 @@
 	* src/java/de/intevation/mxd/reader/WMSLayerReader.java:
 	Do not write WMS Verstions in the map file that mapserver
 	can not support
+	* src/java/de/intevation/mxd/writer/MapScriptWriter.java:
+	Fix Label handling according to mapscript 6.2
 
 2012-10-22  Andre Heinecke <aheinecke@intevation.de>
 
--- 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)