Mercurial > mxd2map
changeset 322:40442cbfbcc7
Fix invalid quoting for string expressions
author | Andre Heinecke <aheinecke@intevation.de> |
---|---|
date | Fri, 21 Sep 2012 10:27:26 +0200 |
parents | b6c0fbae16dc |
children | 4051c39757db |
files | ChangeLog src/java/de/intevation/mxd/writer/MapScriptWriter.java |
diffstat | 2 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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@intevation.de> + + * src/java/de/intevation/mxd/writer/MapScriptWriter.java: + Fix invalid quoting in string expression builder part. + 2012-09-20 Andre Heinecke <aheinecke@intevation.de> Expand Graphics Layer Support
--- 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") + "\")"; }