[MXD2map-commits] r322:40442cbfbcc7

scm-commit at wald.intevation.org scm-commit at wald.intevation.org
Fri Sep 21 10:27:30 CEST 2012


details:   http://hg.intevation.org/geospatial/mxd2map/rev/40442cbfbcc7

changeset: 322:40442cbfbcc7

user:      Andre Heinecke <aheinecke at intevation.de>

date:      Fri Sep 21 10:27:26 2012 +0200

description:
Fix invalid quoting for string expressions


diffstat:

 ChangeLog                                              |  5 +++++
 src/java/de/intevation/mxd/writer/MapScriptWriter.java |  2 +-
 2 files changed, 6 insertions(+), 1 deletions(-)

diffs (24 lines):

diff -r b6c0fbae16dc -r 40442cbfbcc7 ChangeLog
--- a/ChangeLog	Thu Sep 20 17:58:29 2012 +0200
+++ b/ChangeLog	Fri Sep 21 10:27:26 2012 +0200
@@ -1,3 +1,8 @@
+2012-09-21  Andre Heinecke <aheinecke at intevation.de>
+
+	* src/java/de/intevation/mxd/writer/MapScriptWriter.java:
+	Fix invalid quoting in string expression builder part.
+
 2012-09-20  Andre Heinecke <aheinecke at intevation.de>
 
 	Expand Graphics Layer Support
diff -r b6c0fbae16dc -r 40442cbfbcc7 src/java/de/intevation/mxd/writer/MapScriptWriter.java
--- a/src/java/de/intevation/mxd/writer/MapScriptWriter.java	Thu Sep 20 17:58:29 2012 +0200
+++ b/src/java/de/intevation/mxd/writer/MapScriptWriter.java	Fri Sep 21 10:27:26 2012 +0200
@@ -874,7 +874,7 @@
                 //The expression value is a strings.
                 expression += "\"[";
                 expression += sanitizeAttribute(ce.getAttribute("expression_field_0"),
-                                      prefixToRemove, prefix, isShapeFile) + "]";
+                                      prefixToRemove, prefix, isShapeFile) + "]\"";
                 expression += " " + ce.getAttribute("expression_operator");
                 expression += " \"" + ce.getAttribute("value") + "\")";
             }


More information about the MXD2map-commits mailing list